Move vector literals 2 and 3, and add 4-9 + 12 into vector_literals

This commit is contained in:
Nathan Braswell
2015-06-28 21:10:06 -04:00
parent 93cb0732cc
commit d0223c41b3
4 changed files with 109 additions and 16 deletions

View File

@@ -13,22 +13,6 @@ fun vector<T>(in:T):vector<T> {
return out
}
fun vector<T>(first:T, second:T):vector<T> {
var out.construct():vector<T>
out.add(first)
out.add(second)
return out
}
fun vector<T>(first:T, second:T, third:T):vector<T> {
var out.construct():vector<T>
out.add(first)
out.add(second)
out.add(third)
return out
}
obj vector<T> (Object) {
var data: T*;
var size: int;