seax icon indicating copy to clipboard operation
seax copied to clipboard

Functionality for merging two lists

Open hawkw opened this issue 10 years ago • 2 comments

While I'm working on the List API, I should add some functionality for merging together two Lists; i.e. append_all() and prepend_all() methods (or similar). std::vec::Vec has this sort of method, so I probably should implement them as well.

As a nice side note, if there was a List.append_all() method, this would mean that I could use List exclusively in the compiler (rather than Vec). This would remove the overhead of converting Vecs of instructions to Lists before program execution, which obviously has some performance implications in line-by-line interpreter mode. Also, I like the idea of eating my own dog food, especially as there aren't many places in the compiler where I actually benefit from Vec's better performance (there's very little random access).

hawkw avatar Apr 09 '15 18:04 hawkw

Looks like this will require #61.

hawkw avatar Apr 09 '15 19:04 hawkw

Removed from the Scheme v2.0 milestone and moved to the icebox; see my comment on #61 for why.

hawkw avatar Apr 09 '15 19:04 hawkw