Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Deprecated: This module will be removed in a future release.
Some special operations with fractions.
- fractions :: (Ord b, Fractional c) => (a -> (b, c)) -> [a] -> [(b, c)]
- fractionsMaybe :: (Ord b, Fractional c) => (a -> Maybe (b, c)) -> [a] -> [(b, c)]
Functions
fractions :: (Ord b, Fractional c) => (a -> (b, c)) -> [a] -> [(b, c)] Source #
Apply a function to a list to extract keys with values that sum to unity.
fractionsMaybe :: (Ord b, Fractional c) => (a -> Maybe (b, c)) -> [a] -> [(b, c)] Source #
Apply a function to a list to extract keys with values that sum to unity.