Skip to content

Commit a82009e

Browse files
authored
Reference: in(Fold) Description and Reorder (#66)
* Reference: in(fold): specify list can be slice or string * Reference: in(fold): reorder in and inFold * Reference: in(Fold): use 'sequence' rather than 'list' in command syntax and descriptions * Reference: in(fold): add new line between fenced code block and function description Signed-off-by: Luca Zeuch <[email protected]>
1 parent 11550b9 commit a82009e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/docs/reference/templates/functions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,21 +2221,21 @@ Places commas to separate groups of thousands in a number.
22212221

22222222
- `number`: the number to format. Must be an int or a string. Must be a whole number.
22232223

2224-
#### inFold
2224+
#### in
22252225

22262226
```yag
2227-
{{ $result := inFold <list> <value> }}
2227+
{{ $result := in <sequence> <value> }}
22282228
```
22292229

2230-
Same as [in](#in), but is case-insensitive.
2230+
Returns whether the case-sensitive `value` is in the `sequence`. `sequence` can be a slice or string.
22312231

2232-
#### in
2232+
#### inFold
22332233

22342234
```yag
2235-
{{ $result := in <list> <value> }}
2235+
{{ $result := inFold <sequence> <value> }}
22362236
```
22372237

2238-
Returns whether the case-sensitive `value` is in the provided list.
2238+
Same as [in](#in), but is case-insensitive. `sequence` can be a slice or string.
22392239

22402240
#### index
22412241

0 commit comments

Comments
 (0)