HUGO
Menu
GitHub 86675 stars Mastodon

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: January 1, 0001
Improve this page