Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Linked lists considered harmful

Name: Anonymous 2009-10-10 20:46

  ↑    slava_pestov 4 points 5 hours ago [-]
  ↓    A perfect illustration of why single linked lists are simply the wrong data structure in
        99% of cases. Just use arrays and you won't have to choose between tail recursion, and
        front-to-back iteration order.
        permalink report reply

Name: Anonymous 2009-10-10 23:09

>>32
Yeah, that's what I thought until I noticed there were four of them: [a,b] (a,b] [a,b) (a,b). Plus a few more with fixed lower bound. It also has a general <range> constructor for if you need a specific step size (angle brackets is the convention for constructor names).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List