Merge pull request #239 from bjorn/sequence_list

Added Sequence.list
This commit is contained in:
Bob Nystrom
2015-03-28 09:06:49 -07:00
4 changed files with 34 additions and 0 deletions
+8
View File
@@ -136,6 +136,14 @@ static const char* libSource =
"\n"
" return result\n"
" }\n"
"\n"
" list {\n"
" var result = new List\n"
" for (element in this) {\n"
" result.add(element)\n"
" }\n"
" return result\n"
" }\n"
"}\n"
"\n"
"class String is Sequence {\n"