Hacker News new | past | comments | ask | show | jobs | submit login

I might be nitpicking but in Haskell and typical lisps “lists” don’t have efficient append. They are basically singly linked lists. A structure with efficient append and prepend (sometimes called a deque) is implemented as a finger tree in Haskell (with logarithmic random access), and as a vector of arrays in C++ (constant random access).



Good point. Sometimes efficient append, but usually just efficient prepend ^_^




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

Search: