Merge branch 'feature/list-where' of git://github.com/zeckalpha/wren into zeckalpha-feature/list-where

Conflicts:
	builtin/core.wren
	src/wren_core.c
This commit is contained in:
Bob Nystrom
2014-02-15 11:21:24 -08:00
3 changed files with 27 additions and 3 deletions
+9 -1
View File
@@ -16,7 +16,7 @@ class List {
}
return result
}
map (f) {
var result = []
for (element in this) {
@@ -24,4 +24,12 @@ class List {
}
return result
}
where (f) {
var result = []
for (element in this) {
if (f.call(element)) result.add(element)
}
return result
}
}