. package:xmonad-contrib

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
Bitwise "or"
Multivariable composition.
f .: g ≡ (f .) . g ≡ \c d -> f (g c d)
An infix operator for logDefault, which can be more convenient to combine multiple loggers.
logTitle .| logWhenActive 0 (logConst "*") .| logConst "There's nothing here"
This lets you apply a function to an attribute (i.e. read, modify, write).