HP Prime for All

English  Русский 

Syntax

zip(Fnc2d(f),Lst(l1),Lst(l2),[Val(default)])

Description

Returns a list whose j-th entry is f(l1[j],l2[j]): without default value its length is the minimum of the lengths of the two input lists and else the shorter list is padded with the default value.

Example

zip('+',[a,b,c,d], [1,2,3,4]) returns [a+1,b+2,c+3,d+4]

zip — Discussion