diff options
author | itchyny <itchyny@cybozu.co.jp> | 2023-07-09 12:56:59 +0900 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-08 23:13:15 -0500 |
commit | d8072564c28d38d29aa0a7c416621f02c19f7f44 (patch) | |
tree | 47e98bb8a510f15d927b3e0ea50d292881e009d9 /docs/content/manual/manual.yml | |
parent | e2bc8de8bb0487e9ae9f8d8203cf4988154ba3f0 (diff) |
Fix nth/2 to emit empty on index out of range
Diffstat (limited to 'docs/content/manual/manual.yml')
-rw-r--r-- | docs/content/manual/manual.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index 30b0cf60..183e4a5d 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -2832,10 +2832,8 @@ sections: The `first(expr)` and `last(expr)` functions extract the first and last values from `expr`, respectively. - The `nth(n; expr)` function extracts the nth value output by - `expr`. This can be defined as `def nth(n; expr): - last(limit(n + 1; expr));`. Note that `nth(n; expr)` doesn't - support negative values of `n`. + The `nth(n; expr)` function extracts the nth value output by `expr`. + Note that `nth(n; expr)` doesn't support negative values of `n`. examples: - program: '[first(range(.)), last(range(.)), nth(./2; range(.))]' |