def const(value, *_, **__):
    """
    Given a value, returns a function that simply returns that value.

    Example:
    >>> f = const(42)
    >>> f()
    42
    >>> f()
    42
    """

    return lambda *_, **__: value