
28 Dec
2016
28 Dec
'16
10:55 a.m.
discovered this handy snippet today (duh :):
foldl (<|>) Nothing [Nothing, Just 1, Nothing, Just 2] Just 1
basically, pick first Just from a list of Maybes http://hackage.haskell.org/package/base-4.9.0.0/docs/Control-Applicative.htm...