Set package:relude
Sets the given value to the structure using a setter.
A set of values. A set cannot contain duplicate values.
Apply a function that returns a value inside of a functor, with the
output in the first slot, the input in the second, and the entire
tuple inside the functor.
A dual to
traverseToSnd
>>> traverseToFst (Just . (+1)) 10
Just (11,10)
>>> traverseToFst (const Nothing) 10
Nothing
Apply a function that returns a value inside of a functor, with the
output in the second slot, the input in the first, and the entire
tuple inside the functor.
A dual to
traverseToFst.
>>> traverseToSnd (Just . (+1)) 10
Just (10,11)
>>> traverseToSnd (const Nothing) 10
Nothing