[Haskell-cafe] Rewrite without parenthesis

Michael Orlitzky michael at orlitzky.com
Mon Aug 22 03:52:57 UTC 2016


On 08/18/2016 08:03 AM, Carl Petersen wrote:
> How do you rewrite head (tail [1,2,3]) without parenthesis.
> 

case [1,2,3] of x1:x2:xs -> Just x2; otherwise -> Nothing



More information about the Haskell-Cafe mailing list