Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
shrinkMap :: Arbitrary a => (a -> b) -> (b -> a) -> b -> [b]massiv-test Test.Massiv.Utils Map a shrink function to another domain. This is handy if your data type has special invariants, but is almost isomorphic to some other type.
shrinkOrderedList :: (Ord a, Arbitrary a) => [a] -> [[a]] shrinkOrderedList = shrinkMap sort id shrinkSet :: (Ord a, Arbitrary a) => Set a -> [Set a] shrinkSet = shrinkMap fromList toList
shrinkMapBy :: (a -> b) -> (b -> a) -> (a -> [a]) -> b -> [b]massiv-test Test.Massiv.Utils Non-overloaded version of shrinkMap.
suchThatMap :: Gen a -> (a -> Maybe b) -> Gen bmassiv-test Test.Massiv.Utils Generates a value for which the given function returns a Just, and then applies the function.
imap :: (Context a, Context b) => ((Int, Int) -> a -> b) -> Matrix a -> Matrix bmatrices Data.Matrix No documentation available.
imapM :: (Context a, Context b, Monad m) => ((Int, Int) -> a -> m b) -> Matrix a -> m (Matrix b)matrices Data.Matrix O(m*n) Apply the monadic action to every element and its index, yielding a matrix of results.
imapM_ :: (Context a, Monad m) => ((Int, Int) -> a -> m b) -> Matrix a -> m ()matrices Data.Matrix O(m*n) Apply the monadic action to every element and its index, ignoring the results.
-
matrices Data.Matrix.Generic No documentation available.
-
matrices Data.Matrix.Generic O(m*n) Apply the monadic action to every element and its index, yielding a matrix of results.
-
matrices Data.Matrix.Generic O(m*n) Apply the monadic action to every element and its index, ignoring the results.
imap :: (Context a, Context b) => ((Int, Int) -> a -> b) -> Matrix a -> Matrix bmatrices Data.Matrix.Storable No documentation available.