hugo/docs/content/en/functions/collections/Slice.md
2023-12-04 15:24:01 +01:00

24 lines
469 B
Markdown

---
title: collections.Slice
description: Creates a slice of all passed arguments.
categories: []
keywords: []
action:
aliases: [slice]
returnType: any
signatures: [collections.Slice ITEM...]
related:
- collections.Append
- collections.Apply
- collections.Delimit
- collections.In
- collections.Reverse
- collections.Seq
- collections.Slice
aliases: [/functions/slice]
---
```go-html-template
{{ $s := slice "a" "b" "c" }}
{{ $s }} → [a b c]
```