The OpenD Programming Language

pad.pad

  1. auto pad(S s, T value, size_t[dimensions.length] lengths)
    template pad(size_t[] dimensions, string[] directions)
    pad
    (
    S
    T
    )
    (
    S s
    ,,
    size_t[dimensions.length] lengths...
    )
    if (
    dimensions.length &&
    dimensions.length == directions.length
    )
  2. auto pad(S s, T value, size_t[N] lengths)

Parameters

s S

Slice or ndField

value T

initial value for padding

lengths size_t[dimensions.length]

list of lengths

Return Value

Type: auto

See Also

._concatenation examples.

Meta