collections.Reverse
Returns a slice by reversing the order of elements in the given slice.
Syntax
collections.Reverse SLICE
Returns
[]any
{{ slice 2 1 3 | collections.Reverse }} → [3 1 2]Last updated:
February 8, 2026
:
content: Improve descriptions and signatures for collections functions (573b8610f)
Improve this page