Fixes to for loops. Added elseif and else

This commit is contained in:
Jonathan Turner
2009-07-01 17:13:52 +00:00
parent 27f6ec7b70
commit 042df442a1
4 changed files with 39 additions and 9 deletions

View File

@@ -11,5 +11,5 @@ def for_each(container, function)
var vec = [1,2,3,4,5,6,7,8,9, "hi", 4.5]
for_each(vec, function(x) { print(x); } );
for_each(vec, fun(x) { print(x); } );