Skip to content

Commit 06d01c0

Browse files
authored
Merge pull request #1581 from sogaiu/fix-mapcat-and-keep-docstrings
Fix mapcat and keep docstrings
2 parents 332f123 + d493eaf commit 06d01c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/boot/boot.janet

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,9 @@
11031103
and use `array/concat` to concatenate the results, but only if
11041104
no `inds` are provided. Multiple data structures can be handled
11051105
if each `inds` is a data structure and `f` is a function of
1106-
arity one more than the number of `inds`. The resulting array
1107-
has a length that is the shortest of `ind` and each of `inds`.
1106+
arity one more than the number of `inds`. Note that `f` is only
1107+
applied to values at indeces up to the largest index of the
1108+
shortest of `ind` and each of `inds`.
11081109
```
11091110
[f ind & inds]
11101111
(def res @[])
@@ -1143,8 +1144,8 @@
11431144
structure `ind`, but only if no `inds` are provided. Multiple
11441145
data structures can be handled if each `inds` is a data
11451146
structure and `pred` is a function of arity one more than the
1146-
number of `inds`. The resulting array has a length that is the
1147-
shortest of `ind` and each of `inds`.
1147+
number of `inds`. The resulting array has a length that is no
1148+
longer than the shortest of `ind` and each of `inds`.
11481149
```
11491150
[pred ind & inds]
11501151
(def res @[])

0 commit comments

Comments
 (0)