collections.In
Reports whether a value exists within the given slice or string.
- Syntax
- collections.In SLICE|STRING VALUE
- Returns
- bool
- Alias
- in
{{ $s := slice "a" "b" "c" }}
{{ in $s "b" }} → true{{ $s := "abc" }}
{{ in $s "b" }} → trueLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page