Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- compareLength :: [a] -> Int -> Ordering
Documentation
compareLength :: [a] -> Int -> Ordering Source #
Compares the length of the given list to the given integer. This is
equivalent to compare (length xs) n
, but it can be more efficient if n
is less than length xs
.