aboutsummaryrefslogtreecommitdiff
path: root/greet.ell
diff options
context:
space:
mode:
Diffstat (limited to 'greet.ell')
-rw-r--r--greet.ell12
1 files changed, 3 insertions, 9 deletions
diff --git a/greet.ell b/greet.ell
index 3bfad4e..b2f8ef9 100644
--- a/greet.ell
+++ b/greet.ell
@@ -1,19 +1,13 @@
-set greet {
- arg _name
- print 'hello ' @_name '\n'
-}
set decr {
- arg _name
- set @_name (- @@_name 1)
+ set @1 (- @@1 1)
}
set limit 2
-for (map { arg _x; .. @_x ! } [
+for (map { .. @1 ! } [
world
creator
'darkness, my old friend'
]) {
- arg _whom
- greet @_whom
+ { print 'hello ' @1 '\n' } @1
if (= 0 (decr limit)) { break }
}