Skip to content

Commit

Permalink
Change len note
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Jan 18, 2025
1 parent 96e50b0 commit 20a3bc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/usage/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,14 @@ Creates an array with the provided elements. Use `{@}` for an array of all match

#### @len

!!! warning
This is a linear-time operation. Length of the array
is not stored and the string needs to be scanned.

Syntax: `{@len <arr>}`

Returns the length of an array. Empty "" returns 0, a literal will be 1.

**Note:** This is a linear-time operation.

#### @in

Syntax: `{@in <val> <arr>}` or `{@in <val> {@ val0 val1 val2 ...}}`
Expand Down

0 comments on commit 20a3bc2

Please sign in to comment.