map

inline fun <Element, Result> Maybe<Element>.map(compute: (Element) -> Result): Maybe<Result>(source)

Computes the compute on the value and returns it wrapped in Some if the value is present or just returns None otherwise.