The OpenD Programming Language

rcmap.rcmap

  1. auto rcmap(Slice!(Iterator, N, kind) slice)
  2. auto rcmap(T[] array)
  3. auto rcmap(T withAsSlice)
  4. auto rcmap(Range r)
    template rcmap(fun...)
    static if(fun.length == 1)
    static if(__traits(isSame, naryFun!(fun[0]), fun[0]))
    rcmap
    (
    Range
    )
    (
    Range r
    )
    if (
    !hasAsSlice!Range &&
    !isSlice!Range
    &&
    !is(Range : T[],
    T
    )
    )
    if (
    fun.length
    )

Return Value

Type: auto

ndslice or an input range with each fun applied to all the elements. If there is more than one fun, the element type will be Tuple containing one element for each fun.

Meta