github.com/lyeb/hugo@v0.47.1/docs/content/en/functions/slice.md (about)

     1  ---
     2  title: slice
     3  # linktitle: slice
     4  description: Creates a slice (array) of all passed arguments.
     5  godocref:
     6  date: 2017-02-01
     7  publishdate: 2017-02-01
     8  lastmod: 2017-02-01
     9  categories: [functions]
    10  menu:
    11    docs:
    12      parent: "functions"
    13  keywords: [slice, array, interface]
    14  signature: ["slice ITEM..."]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: []
    18  deprecated: false
    19  draft: false
    20  aliases: []
    21  toc: false
    22  ---
    23  
    24  One use case is the concatenation of elements in combination with the [`delimit` function][]:
    25  
    26  {{< code file="slice.html" >}}
    27  {{ delimit (slice "foo" "bar" "buzz") ", " }}
    28  <!-- returns the string "foo, bar, buzz" -->
    29  {{< /code >}}
    30  
    31  
    32  [`delimit` function]: /functions/delimit/