What does a fullstop or period or dot (.) mean in Haskell?

Casebash picture Casebash · Mar 21, 2010 · Viewed 13k times · Source

I really wish that Google was better at searching for syntax:

decades         :: (RealFrac a) => a -> a -> [a] -> Array Int Int
decades a b     =  hist (0,9) . map decade
                   where decade x = floor ((x - a) * s)
                         s        = 10 / (b - a)

Answer

Pratik Deoghare picture Pratik Deoghare · Mar 21, 2010

f(g(x))

is

in mathematics : f ∘ g (x)

in haskell : ( f . g ) (x)