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
@@ -17,6 +17,13 @@ class Sequence {
}
class List is Sequence {
addAll(other) {
for (element in other) {
add(element)
}
return other
}
toString {
var result = "["
for (i in 0...count) {