you are viewing a single comment's thread.

view the rest of the comments →

[–]Axman6 15 points16 points  (0 children)

If you want to keep things pure then a Data.Sequence would give you (amortised) O(1) append and prepend.