Guest User

Untitled

a guest
Nov 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. let x = a ?? b ?? c ?? 1
  2.  
  3. safeHead [] d = d
  4. safeHead (h:_) _ = h
  5.  
  6. let x = safeHead $ catMaybes [a, b, c]
Add Comment
Please, Sign In to add comment