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
{{ list 1 2 3 }} // Output: [1 2 3]append
{{ list "a" "b" | append "c" }} // Output: [a b c]
{{ nil | append "c" }} // Errorprepend
{{ list "b" "c" | prepend "a" }} // Output: [a b c]
{{ nil | prepend "c" }} // Errorconcat
chunk
uniq
compact
flatten
flattenDepth
slice
has
without
rest
initial
first
last
reverse
sortAlpha
splitList
strSlice
until
untilStep
Last updated