Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
parse :: (IArray a e, Ix i, Num i, Read e) => String -> a i e Source #
Reads the words of a string to an array.
top :: (IArray a e, Ix i, Ord e) => a i e -> (i, e) Source #
Returns the index and value of first maximum in an array.
redistribute :: (IArray a i, Integral i, Ix i) => a i i -> a i i Source #
Removes the first maximum and redistributes its value throughout the array.