forked from Mirror/wren
Allow [0..-1] and [0...0] to work on empty lists.
This commit is contained in:
@ -10,10 +10,7 @@ class List {
|
||||
}
|
||||
|
||||
+ that {
|
||||
var result = []
|
||||
for (element in this) {
|
||||
result.add(element)
|
||||
}
|
||||
var result = this[0..-1]
|
||||
for (element in that) {
|
||||
result.add(element)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user