From d493eaf48504972ccaeef55316e5ee498b5bc258 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Sun, 6 Apr 2025 20:48:52 +0900 Subject: [PATCH] Fix mapcat and keep docstrings --- src/boot/boot.janet | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index b49c693f..ff2419da 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -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 @[])