Un-type a list
It would be useful (particularly for me...) if I could convert a list to a "normal lua list" with only the numbered keys. I'm cheating right now by fiddling with internals gleamed from the source:
(define x (list 1 2 3))
(.<! x :n nil)
(.<! x :tag nil)
x
The use-case is that I'm returning to a lua-interop, where the keys are checked for all integers, and if they are, it's converted to a vim array. If it's mixed, it seems to blow up. Perhaps a poor design choice (I don't know!), but it's the one I'm stuck with.