flatMap.flatMap

The actual flatMap function.

template flatMap(alias fun)
flatMap
(
T
E1
)
(
Expected!(T, E1) self
)
if (
is(typeof(fun(self.value)) == Expected!(U, E2),
U
E2
) &&
is(E1 : E2)
)

Parameters

self
Type: Expected!(T, E1)

an Expected object

Meta