---
title: collections.Slice
description: Creates a slice of all passed arguments.
categories: []
keywords: []
action:
  aliases: [slice]
  related:
    - functions/collections/Dictionary
  returnType: any
  signatures: [collections.Slice ITEM...]
aliases: [/functions/slice]
---

```go-html-template
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
```
