Slices
The Slices registry provides utilities for working with slice data structures, including functions for filtering, sorting, and transforming slices in a flexible manner.
list
{{ 1, 2, 3 | list }} // Output: [1, 2, 3]append
{{ ["a", "b"] | append "c" }} // Output: ["a", "b", "c"], nil
{{ nil | append "c" }} // Errorprepend
{{ ["b", "c"] | prepend "a" }} // Output: ["a", "b", "c"]
{{ nil | prepend "c" }} // Errorconcat
chunk
uniq
compact
slice
has
without
rest
initial
first
last
reverse
sortAlpha
splitList
strSlice
until
untilStep
Last updated