Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
map :: (PrimType a, PrimType b) => (a -> b) -> UArray a -> UArray bbasement Basement.UArray No documentation available.
map :: (Word8 -> Word8) -> Bytes -> Bytesbyteslice Data.Bytes Map over bytes in a sequence. The result has the same length as the argument.
map :: (a -> b) -> EnumMap k a -> EnumMap k benummapset Data.EnumMap.Lazy No documentation available.
map :: (a -> b) -> EnumMap k a -> EnumMap k benummapset Data.EnumMap.Strict No documentation available.
map :: Enum k => (k -> k) -> EnumSet k -> EnumSet kenummapset Data.EnumSet No documentation available.
map :: (Index ix, Source r e') => (e' -> e) -> Array r ix e' -> Array D ix emassiv Data.Massiv.Array Map a function over an array
map :: forall (m :: Type -> Type) r . Monad m => (Word8 -> Word8) -> Pipe ByteString ByteString m rpipes-bytestring Pipes.ByteString Apply a transformation to each Word8 in the stream
map :: Functor f => (a -> b) -> f a -> f bprotolude Protolude No documentation available.
map :: Ord c => (a -> c) -> Bimap a b -> Bimap c bbimap Data.Bimap O(n*log n) Map a function over all the left keys in the map. Version 0.3
-
ghc-internal GHC.Internal.Base 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]