isSorted package:tensort

Takes a list and returns True if the list is sorted in ascending order and False otherwise.

Examples

>>> isSorted ([0, 1, 2, 3, 4] :: [Int])
True
>>> isSorted ([0, 1, 2, 4, 3] :: [Int])
False