2 ms·
That's a lengthy name for the simple operation of getting the first element of a list if there is one. I would have preferred 'car' :-)
by galaxyLogic 8y ago
That's a lengthy name for the simple operation of getting the first element of a list if there is one. I would have preferred 'car' :-)
- lodi 8y agoIt's a bit verbose, but this kind of thing is far less prevalent in Haskell anyway; most of the time you destructure a list through pattern matching, not explicit head/tail functions.