Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import Html exposing (text)
  2.  
  3. testingNothing : List number -> String
  4. testingNothing list =
  5. case List.head list of
  6. Just num ->
  7. "List is not empty"
  8. Nothing ->
  9. "List is empty. Nothing returned from List.head"
  10.  
  11. main =
  12. text <| testingNothing([])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement