Source code for snakia.core.rx.consts

from typing import Callable, TypeVar

T = TypeVar("T")


[docs] def const(value: T) -> Callable[[], T]: return lambda: value