Lartu / ldpl

COBOL-like programming language that compiles to C++. With serious dinosaurs with neckties and briefcases 🦕💼
https://www.ldpl-lang.org/
Apache License 2.0
161 stars 24 forks source link

Add REMOVE ELEMENT AT for lists #214

Closed Lartu closed 1 year ago

Lartu commented 1 year ago

I've realized the only way to delete an element from a list right now is to delete every element of the list from the tail up to that element, and then re-add every element back into the list, which is terribly inefficient. I was thinking that we maybe should add a "REMOVE ELEMENT AT" command to delete elements from a list that are not in the last position.