map.map

The actual map function.

template map(alias op, Hook = Abort)
@safe
map
(
T
E
H
)
(
auto ref Expected!(T, E, H) self
)
if (
(
is(T == void) &&
is(typeof(op()))
)
||
(
!is(T == void) &&
is(typeof(op(self.value)))
)
)

Parameters

self
Type: Expected!(T, E, H)

an Expected object

Meta