Difference between revisions of "Comments:Zip Command"

From GeoGebra Manual
Jump to: navigation, search
m (r2.7.3) (robot Adding: hu:EredményLista parancs)
Line 3: Line 3:
 
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, <code>Zip[a^2, a, listOfNumbers]</code> is much shorter than <code>Sequence[Element[listOfNumbers, a]^2, a, 1, Length[listOfNumbers]]</code> (albeit in this case it's easier to just do <code>listOfNumbers^2</code>.)
 
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, <code>Zip[a^2, a, listOfNumbers]</code> is much shorter than <code>Sequence[Element[listOfNumbers, a]^2, a, 1, Length[listOfNumbers]]</code> (albeit in this case it's easier to just do <code>listOfNumbers^2</code>.)
  
(Tip: Zip[] is similar to a construct known as "map" in other programming languages.)
+
{{Hint|1=Zip[] is similar to a construct known as "map" in other programming languages.}}
  
 
[[nn:Zip Kommando]]
 
[[nn:Zip Kommando]]

Revision as of 22:44, 17 November 2012

Manual:Zip Command

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.


nn:Zip Kommando

bs:Zip Naredba ca:Zip Comandament cs:Příkaz Zip de:Zip (Befehl) el:Αντιστοιχία Εντολή es:Comando Zip et:Zip käsk fa:Zip دستور fr:Commande Compactée hr:Zip naredba is:Splæsa Skipun it:Comando Compatta kk:Zip команадсы ko:Zip 명령 lt:Zip komanda mk:Зип Наредба no:Zip Kommando pl:ZmiennaNaListę Polecenie sk:Zip príkaz sl:Zip ukaz sv:KombineraLista-kommandot tr:Zip Komut zh:Zip 指令

hu:EredményLista parancs

© 2024 International GeoGebra Institute