We have sequence, I think it's in the syntax package.
The slight snag here is that because we aren't stacking instances of typeclasses, as you would in Cats, what we have is a number of specific hardcoded sequence implementations. So needs a little thought. We could implement a bunch of traverse instances the same way... is that sensible? Could even implment traverse as map.sequence, which is technical the opposite of how you normally do it, i.e. sequence = traverse(identity).
We have
sequence
, I think it's in the syntax package.The slight snag here is that because we aren't stacking instances of typeclasses, as you would in Cats, what we have is a number of specific hardcoded sequence implementations. So needs a little thought. We could implement a bunch of traverse instances the same way... is that sensible? Could even implment traverse as
map.sequence
, which is technical the opposite of how you normally do it, i.e. sequence = traverse(identity).