View source for Zip Command

Jump to: navigation, search

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in one of the groups: Administrators, user-manual, user-manual-en.


You can view and copy the source of this page.

Return to Zip Command.

Comments

It's actually enough to provide a single list to Zip(). This makes it a shorter alternative to Sequence() when all you want is to traverse a list. For example, Zip(a^2, a, listOfNumbers) is much shorter than Sequence(Element(listOfNumbers, a)^2, a, 1, Length(listOfNumbers)) (albeit in this case it's easier to just do listOfNumbers^2.)

Note Hint: Zip() is similar to a construct known as "map" in other programming languages.
© 2021 International GeoGebra Institute