[added] correct sequence support for collapse (and flatten)

This commit is contained in:
Max Cahill 2020-07-02 17:05:26 +10:00
parent 18d02434a0
commit 7d3b568ac5

View File

@ -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