std.range lockstep is not input range but opApply entity. Workarounds?

mist none at none.none
Sat Dec 29 05:48:25 PST 2012


I basically want to be able to do stuff like this:
auto result = map!( (a, b) => a+b )( lockstep(range1, range2) );

Are there any standard short ways to wrap an input range around 
struct with opApply (which Lockstep is)?

Also what about redesigning Lockstep as a proper range? I could 
do a pull request but not sure about current intentions.


More information about the Digitalmars-d-learn mailing list