Bugfixes, range(start,end,step), and beginning work on lexer and symbol

This commit is contained in:
Nathan Braswell
2015-06-28 20:25:27 -04:00
parent 48683889da
commit ce6c8241fb
19 changed files with 248 additions and 48 deletions

View File

@@ -14,7 +14,7 @@ fun set<T>(item: T): set<T> {
fun from_vector<T>(items: vector::vector<T>): set<T> {
var toRet.construct() : set<T>
items.do( fun(item: T) toRet.add(item); )
items.for_each( fun(item: T) toRet.add(item); )
return toRet
}
@@ -63,7 +63,7 @@ obj set<T> {
data.remove(idx)
}
fun for_each(func: fun(T):void) {
data.do(func)
data.for_each(func)
}
}