Difference between revisions of "Comments:Zip Command"

From GeoGebra Manual
Jump to: navigation, search
m (r2.7.1+) (robot Adding: tr:Zip Komut)
(The note wasn't clear (as per http://www.geogebra.org/forum/viewtopic.php?f=2&t=24705 ))
Line 1: Line 1:
 
<!-- DO NOT EDIT -->{{:Manual:{{PAGENAME}}}}<!-- END: DO NOT EDIT -->
 
<!-- DO NOT EDIT -->{{:Manual:{{PAGENAME}}}}<!-- END: DO NOT EDIT -->
  
{{Note|It's actually enough to provide a single list. This way a construct similar to "for each" (or "map") from other programming languages can be mimicked.}}
+
(Tip: Zip[] is similar to a construct known as "map" in other programming languages.)
 +
 
 +
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>.)
  
 
[[bs:Zip Naredba]]
 
[[bs:Zip Naredba]]

Revision as of 16:52, 21 November 2011

Manual:Zip Command

(Tip: Zip[] is similar to a construct known as "map" in other programming languages.)

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.)

bs:Zip Naredba ca:Zip Comandament cs:Příkaz Zip de:Zip (Befehl) 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:Зип Наредба pl:ZmiennaNaListę Polecenie sk:Zip príkaz sl:Zip ukaz tr:Zip Komut zh:Zip 指令

© 2024 International GeoGebra Institute