List.addAll().

This commit is contained in:
Bob Nystrom
2014-04-06 08:37:37 -07:00
parent 28021dc63e
commit 9a8f2edda4
4 changed files with 26 additions and 3 deletions
+7
View File
@@ -60,6 +60,13 @@ static const char* libSource =
"}\n"
"\n"
"class List is Sequence {\n"
" addAll(other) {\n"
" for (element in other) {\n"
" add(element)\n"
" }\n"
" return other\n"
" }\n"
"\n"
" toString {\n"
" var result = \"[\"\n"
" for (i in 0...count) {\n"