Debian Codegraph @

docs/content/en/functions/collections/Reverse.md

raw
1 ---
2 title: collections.Reverse
3 description: Returns a slice by reversing the order of elements in the given slice.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: '[]any'
10 signatures: [collections.Reverse SLICE]
11 aliases: [/functions/collections.reverse]
12 ---
13
14 ```go-html-template
15 {{ slice 2 1 3 | collections.Reverse }} → [3 1 2]
16 ```