:: (Monad m) => m a -> (a -> m b) -> m b package:relude

Sequentially compose two actions, passing any value produced by the first as an argument to the second. 'as >>= bs' can be understood as the do expression
do a <- as
bs a
For chaining monadic operations in forward applications using (&) Named version of =<<.
>>> Just [ 1 :: Int ] & chainedTo (viaNonEmpty head)
Just 1

>>> Nothing & chainedTo (viaNonEmpty head)
Nothing
Same as >>=, but with the arguments interchanged.