Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. isSorted [] = True
  2. isSorted [x] = True
  3. isSorted(x:y:ys) = x <= y && isSorted (y:ys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement