Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Point of information for this thread: Erlang's iolist are similar (in data structure and complexity) to Haskell's bizarrely named Difference List, which is explained a bit more here:

http://hackage.haskell.org/packages/archive/dlist/0.4.1/doc/...

It's basically a tree, which is efficient (amortized O(1) per element) for many list appends followed by one iteration.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: