News for hackers. Stuff that matters.
Re:Why Learn Haskell? (2018) by kingaillas on Monday March 01, 2021 @10:16AM (#26303496)
>Like they call the first element in a list / the other elements “list[0]” and “list[1..]” instead of “car” and “cdr”?

car and cdr are remnants of an ancient instruction set (https://en.wikipedia.org/wiki/CAR_and_CDR)... first/rest, head/tail are better. Actually doesn't Haskell use head/tail for lists? Except even there what is in the prelude is busted since head/tail are partial.

There are no comments on this comment yet.