# Package-level declarations

## Functions

ifpresent
Link copied to clipboard

    .ifpresent value:{Dynamic} mapping:{Lambda} -> Any

Content copied to clipboard

Maps value to the result of mapping. This function is usually inlined:

isnone
Link copied to clipboard

    .isnone value:{Dynamic} -> Boolean

Content copied to clipboard

Checks whether value represents a none value.

none
Link copied to clipboard

    .none -> None

Content copied to clipboard
otherwise
Link copied to clipboard

    .otherwise value:{Dynamic} fallback:{Dynamic} -> Dynamic

Content copied to clipboard

Returns value if it is not none, fallback otherwise.

takeif
Link copied to clipboard

    .takeif value:{Dynamic} condition:{Lambda} -> Any

Content copied to clipboard

Keeps value if condition is true, otherwise returns none.