Difference between revisions of "Zip Command"
From GeoGebra Manual
(Autogenerated from properties) |
m (1 revision: new commands) |
(No difference)
|
Revision as of 16:51, 26 February 2011
- Zip[<Expression>, <Var1>, <List1>, <Var2>, <List2>, ...]
Description of command / feature needed. Please enter it instead of this template into Manual:Zip Command. so that it's included also to the public namespace. For more details see Project:HowTo
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
.)
Hint: Zip() is similar to a construct known as "map" in other programming languages.