The OpenD Programming Language

sweep

For each e of the input, applies e op m where m is the result of fun and op is an operation, such as "+", "-", "*", or "/". For instance, if op = "-", then this function computes e - m for each e of the input and where m is the result of applying fun to the input. Overloads are provided to directly provide m to the function, rather than calculate it using fun.

  1. auto sweep(Slice!(Iterator, N, kind) slice)
    template sweep(alias fun, string op)
    sweep
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
  2. auto sweep(SliceLike x)
  3. template sweep(string op)

Members

Functions

sweep
auto sweep(Slice!(Iterator, N, kind) slice)
auto sweep(SliceLike x)

Parameters

fun

function used to sweep

op

operation

Return Value

The input

See Also

Meta