Difference between revisions of "Comments:Zip Command"
Albertschlef (talk | contribs) m (Move the "map" mention to the bottom.) |
m (r2.7.3) (robot Adding: el:Αντιστοιχία Εντολή) |
||
Line 9: | Line 9: | ||
[[cs:Příkaz Zip]] | [[cs:Příkaz Zip]] | ||
[[de:Zip (Befehl)]] | [[de:Zip (Befehl)]] | ||
+ | [[el:Αντιστοιχία Εντολή]] | ||
[[es:Comando Zip]] | [[es:Comando Zip]] | ||
[[et:Zip käsk]] | [[et:Zip käsk]] |
Revision as of 22:30, 16 May 2012
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
.)
(Tip: Zip[] is similar to a construct known as "map" in other programming languages.)
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:Зип Наредба pl:ZmiennaNaListę Polecenie sk:Zip príkaz sl:Zip ukaz tr:Zip Komut zh:Zip 指令