collections.Slice
Syntax
collections.Slice [VALUE...]
Returns
any
Alias
slice
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
To create an empty slice:
{{ $s := slice }}
Syntax
collections.Slice [VALUE...]
Returns
any
Alias
slice
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
To create an empty slice:
{{ $s := slice }}