metadsl_core.maybe

Functions

collapse_maybe(x)

rtype

Maybe[TypeVar(T)]

Classes

Maybe(function, args, kwargs)

An optional value.

class metadsl_core.maybe.Maybe(function, args, kwargs)[source]

An optional value.

args: List[object]
default(self, value) = Maybe.default[source]
flat_map(self, just) = Maybe.flat_map[source]
function: Callable
just(cls, value) = Maybe.just[source]
kwargs: Dict[str, object]
map(self, just) = Maybe.map[source]
match(self, nothing, just) = Maybe.match[source]
nothing(cls) = Maybe.nothing[source]
metadsl_core.maybe.collapse_maybe(x)[source]
Return type

Maybe[TypeVar(T)]