collections.Slice
Returns a slice created from 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 }}Last updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page