mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-26 07:34:35 +00:00
[added] correct sequence support for collapse (and flatten)
This commit is contained in:
parent
18d02434a0
commit
7d3b568ac5
@ -36,6 +36,11 @@ function sequence:dedupe()
|
||||
return sequence(table.dedupe(self))
|
||||
end
|
||||
|
||||
function sequence:collapse()
|
||||
return sequence(table.collapse(self))
|
||||
end
|
||||
sequence.flatten = sequence.collapse
|
||||
|
||||
function sequence:append(...)
|
||||
return sequence(table.append(self, ...))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user