map


Description:

public virtual Result<A> map<A> (owned MapFunc<A,G> func)

Maps the value to another value by applying the given function to the value.

If this result holds or the function throws an exception, the returned result holds the exception.

Parameters:

func

a function applied to value

Returns:

the mapped result