Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1 +1 @@
(doseq [x xs] (println x)
(doseq [x xs] (println x))

View file

@ -1,3 +1 @@
(loop for ref = list then (rest ref)
until (null ref)
do (print (first ref)))
(loop for x in list do (print x))

View file

@ -0,0 +1 @@
(mapc #'print list)

View file

@ -0,0 +1 @@
(map nil #'print list)

View file

@ -0,0 +1,3 @@
(loop for ref = list then (rest ref)
until (null ref)
do (print (first ref)))

View file

@ -0,0 +1,2 @@
(dolist (x '(a b c d e))
(println x))

View file

@ -1,5 +1,5 @@
my $list = 1 => 2 => 3 => 4 => 5 => 6 => Mu;
loop (my $l = $list; $l; $l = $l.value) {
loop (my $l = $list; $l; $l.=value) {
say $l.key;
}

View file

@ -1,7 +1,7 @@
use MONKEY_TYPING;
augment class Pair {
method traverse () {
gather loop (my $l = self; $l; $l = $l.value) {
gather loop (my $l = self; $l; $l.=value) {
take $l.key;
}
}