---
title: collections.Reverse
description: Returns a slice by reversing the order of elements in the given slice.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: []
    returnType: '[]any'
    signatures: [collections.Reverse SLICE]
aliases: [/functions/collections.reverse]
---

```go-html-template
{{ slice 2 1 3 | collections.Reverse }} → [3 1 2]
```
