In the following code you have to write a function to check if a list is sorted or not.
isOrd :: [Int] -> Bool
isOrd [] = True
isOrd [_] = True
isOrd (x:y:xs) = x<=y && isOrd (y:xs)
I would like to know why there is no need to write if/then/else or case for the last line? Why don't we need to check if it's True or False?