apply

Call a predicate with the given value. Return the value. Intended to be used in UFCS chains using functions which mutate their argument, such as skipOver and each.

template apply(alias dg)
ref
T
apply
(
T
)
(
auto ref T v
)

Members

Functions

apply
T apply(T v)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

int i = 7;
int j = i.apply!((ref v) => v++);
assert(j == 8);

Meta