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

  tail : List a -> Maybe (List a)
Nice try though.

https://github.com/elm/core/blob/master/src/List.elm#L548




Haha, sorry. You know what I mean, a partial function.


Except in Elm, the function isn't partial.

You're thinking of the partial functions from Haskell's Prelude.




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

Search: