1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-15 23:33:17 +00:00

Fix mapcat and keep docstrings

This commit is contained in:
sogaiu 2025-04-06 20:48:52 +09:00
parent 332f123abe
commit d493eaf485

View File

@ -1103,8 +1103,9 @@
and use `array/concat` to concatenate the results, but only if
no `inds` are provided. Multiple data structures can be handled
if each `inds` is a data structure and `f` is a function of
arity one more than the number of `inds`. The resulting array
has a length that is the shortest of `ind` and each of `inds`.
arity one more than the number of `inds`. Note that `f` is only
applied to values at indeces up to the largest index of the
shortest of `ind` and each of `inds`.
```
[f ind & inds]
(def res @[])
@ -1143,8 +1144,8 @@
structure `ind`, but only if no `inds` are provided. Multiple
data structures can be handled if each `inds` is a data
structure and `pred` is a function of arity one more than the
number of `inds`. The resulting array has a length that is the
shortest of `ind` and each of `inds`.
number of `inds`. The resulting array has a length that is no
longer than the shortest of `ind` and each of `inds`.
```
[pred ind & inds]
(def res @[])