Closed eNV25 closed 9 months ago
Thanks for noticing that!
The doc for last
introduced in https://github.com/moocfi/haskell-mooc/commit/c196d01e8689f052f01f65a3663b092be3b69ac8 is wrong. Currently it reads "returns everything except the last element" (copied from that for init
) but it should be "returns the last element".
oof, shouldn't edit the text so late at night
init
is mentioned but notlast
.