Scroll to navigation

Array.zip(3kaya) Kaya module reference Array.zip(3kaya)

NAME

Array::zip - Turn a pair of lists into a list of pairs.

SYNOPSIS

[Pair<a, b> ] zip( [a] xs, [b] ys )

ARGUMENTS

xs The first list
xs The second list

DESCRIPTION

Turn a pair of lists into a list of pairs. This is equivalent to using Array.zipWith (3kaya) with this function:

(a,b) zipfn(a fst, b snd) {
return (a,b);
}

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

Array.zipWith (3kaya)
August 2014 Kaya