zip


Description:

public virtual Result<B> zip<A,B> (owned ZipFunc<G,A,B> zip_func, Result<A> second)

Combines the values of two results using the given function.

If two results hold or the function throws an exception, the returned result holds the exception.

Parameters:

zip_func

a function applied to values

second

another result

Returns:

the combined result