map.map

  1. auto map(Slice!(Iterator, N, kind) slice)
    template map(fun...)
    @optmath
    static if(fun.length == 1)
    static if(__traits(isSame, naryFun!(fun[0]), fun[0]))
    @optmath
    map
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
    if (
    fun.length
    )
  2. auto map(T[] array)
  3. auto map(T withAsSlice)
  4. auto map(Range r)
  5. alias map = .map!(staticMap!(naryFun, fun))
  6. alias map = .map!(adjoin!fun)

Parameters

slice Slice!(Iterator, N, kind)

An ndslice, array, or an input range.

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