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:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page