mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-26 23:54:34 +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))
|
return sequence(table.dedupe(self))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function sequence:collapse()
|
||||||
|
return sequence(table.collapse(self))
|
||||||
|
end
|
||||||
|
sequence.flatten = sequence.collapse
|
||||||
|
|
||||||
function sequence:append(...)
|
function sequence:append(...)
|
||||||
return sequence(table.append(self, ...))
|
return sequence(table.append(self, ...))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user