Skip to content

Syntax sugar for map + RefTuple combination

Compare
Choose a tag to compare
@9il 9il released this 02 May 09:06
· 1333 commits to master since this release

map on top of ndslice composed of RefTuples recognises it and passes list of args instead of single tuple.

Old:

    auto c = cartesian(a, b)
        .map!"a.a + a.b";

New:

    auto c = cartesian(a, b)
        .map!"a + b";