map.map

The actual map function.

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

Parameters

self Expected!(T, E, H)

an Expected object

Meta