The OpenD Programming Language

padWrap.padWrap

  1. auto padWrap(Slice!(Iterator, N, kind) s, size_t[dimensions.length] lengths)
    template padWrap(size_t[] dimensions, string[] directions)
    padWrap
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) s
    ,
    size_t[dimensions.length] lengths...
    )
    if (
    dimensions.length &&
    dimensions.length == directions.length
    )
  2. auto padWrap(Slice!(Iterator, N, kind) s, size_t[N] lengths)

Parameters

s Slice!(Iterator, N, kind)
lengths size_t[dimensions.length]

list of lengths for each dimension. Each length must be less or equal to the corresponding slice length.

Return Value

Type: auto

See Also

._concatenation examples.

Meta