Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. isOrd :: [Int] -> Bool
  2.  
  3. isOrd li | ((length li) == 1) = True
  4. | ((length li) == 2) = (head li) < (head (tail li))
  5. | otherwise = ((head li) < (head (tail li))) && (isOrd (tail li))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement