Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
map :: Monoid b => (a -> b) -> Path a -> Path blca Data.LCA.Online.Monoidal O(n) Re-annotate a Path full of monoidal values using a different Monoid.
-
listsafe Data.List.Safe map f xs is the list obtained by applying f to each element of xs, i.e.,
map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn] map f [x1, x2, ...] == [f x1, f x2, ...]
this means that map id == idExamples
>>> map (+1) [1, 2, 3] [2,3,4]
>>> map id [1, 2, 3] [1,2,3]
>>> map (\n -> 3 * n + 1) [1, 2, 3] [4,7,10]
map :: (Num prob, Ord b) => (a -> b) -> T prob a -> T prob bprobability Numeric.Probability.Distribution fmap with normalization
map :: (Num prob, Ord a) => Change a -> T prob a -> T prob aprobability Numeric.Probability.Transition map maps a change function to the result of a transformation (map is somehow a lifted form of map) The restricted type of f results from the fact that the argument to t cannot be changed to b in the result T type.
map :: forall s k a b . (a -> b) -> HashMap s k a -> HashMap s k brefined-containers Data.HashMap.Refined Apply a function to all values in a map. The set of keys remains the same.
map :: forall s k a b . (a -> b) -> HashMap s k a -> HashMap s k brefined-containers Data.HashMap.Strict.Refined Apply a function to all values in a map. The set of keys remains the same.
-
refined-containers Data.HashSet.Refined Apply the given function to each element of the set and collect the results. Note that the resulting set can be smaller.
map :: forall s a b . (a -> b) -> IntMap s a -> IntMap s brefined-containers Data.IntMap.Refined Apply a function to all values in a map. The set of keys remains the same.
map :: forall s a b . (a -> b) -> IntMap s a -> IntMap s brefined-containers Data.IntMap.Strict.Refined Apply a function to all values in a map. The set of keys remains the same.
map :: KnownIntSet s => (Element s -> Int) -> SomeIntSetWith (MapProof 'Int s Int Int)refined-containers Data.IntSet.Refined Apply the given function to each element of the set and collect the results. Note that the resulting set can be smaller.