haskell-issues icon indicating copy to clipboard operation
haskell-issues copied to clipboard

(f .: g) x = f . g x

Open Gurkenglas opened this issue 8 years ago • 2 comments

I seem to be using this so often I can only attribute it to that phenomenon where after you just learned something you start seeing it everywhere.

For example:

foo = asd . evalState (do
    dsa
    sda
  )

transformed into

foo = asd .: evalState $ do
  dsa
  sda

Also consider (.) = fmap, (.:) = fmap . fmap and (.::) = fmap . fmap . fmap

Gurkenglas avatar Mar 25 '16 05:03 Gurkenglas

Previous discussions:

(Hm, I expected more.)

neongreen avatar Mar 25 '16 13:03 neongreen

Related Strange Loop talk: https://www.youtube.com/watch?v=seVSlKazsNk

ghost avatar Jan 11 '17 03:01 ghost