News for hackers. Stuff that matters.
Re:Elm 0.15: Asynchrony with Tasks by rtfeldman on Monday April 20, 2015 @08:12PM (#9411607)
There's already withDefault to make that concise, so you can do things like this:

  withDefault 0 (head listOfNumbers)
No need to pattern match every time. :)

Docs for withDefault: http://package.elm-lang.org/packages/elm-lang/core/1.0.0/May...

There are no comments on this comment yet.