5 return MapResult
!(fun
, R
)(r
);
9 struct MapResult(alias fun
, R
)
13 @property bool empty() { return _input
.length
== 0; }
14 @property auto front() { return fun(_input
[0]); }
15 void popFront() { _input
= _input
[1..$]; }
27 auto arr1
= [1, 2, 3];
28 auto arr2
= [4, 5, 6];