From f38989358e768ebe17c5f191cf9026d513e6f6b7 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Tue, 25 Apr 2023 11:22:20 +0200 Subject: Add a zip method to arrays (#947) --- docs/src/reference/types.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md index 24756422..1bae6b75 100644 --- a/docs/src/reference/types.md +++ b/docs/src/reference/types.md @@ -620,6 +620,16 @@ for loop. - returns: array +### zip() +Zips the array with another array. If the two arrays are of unequal length, it +will only zip up until the last element of the smaller array and the remaining +elements will be ignored. The return value is an array where each element is yet +another array of size 2. + +- other: array (positional, required) + The other array which should be zipped with the current one. +- returns: array + ### fold() Folds all items into a single value using an accumulator function. -- cgit v1.2.3