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.
(
. ) :: (b -> c) -> (a -> b) -> a -> cghc-lib-parser GHC.Prelude.Basic Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: forall (b :: k) (c :: k) (a :: k) . Category cat => cat b c -> cat a b -> cat a cfoundation Foundation morphism composition
(
. ) :: (b -> c) -> (a -> b) -> a -> cprelude-compat Prelude2010 Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cbase-prelude BasePrelude.Operators Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cmixed-types-num Numeric.MixedTypes.PreludeHiding Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cLambdaHack Game.LambdaHack.Core.Prelude Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> ccabal-install-solver Distribution.Solver.Compat.Prelude Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cihaskell IHaskellPrelude Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cincipit-base Incipit.Base Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30
(
. ) :: (b -> c) -> (a -> b) -> a -> cclash-prelude Clash.HaskellPrelude Right to left function composition.
(f . g) x = f (g x)
f . id = f = id . f
Examples
>>> map ((*2) . length) [[], [0, 1, 2], [0]] [0,6,2]
>>> foldr (.) id [(+1), (*3), (^3)] 2 25
>>> let (...) = (.).(.) in ((*2)...(+)) 5 10 30