hugo/docs/content/en/functions/collections/Slice.md

19 lines
356 B
Markdown
Raw Normal View History

---
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]
```