collections.Slice
Returns a slice composed of the given values.
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
Returns
Alias
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
To create an empty slice:
{{ $s := slice }}