indigo icon indicating copy to clipboard operation
indigo copied to clipboard

Batch: Provide `traverse` operation

Open davesmith00000 opened this issue 9 months ago • 0 comments

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).

davesmith00000 avatar May 18 '24 21:05 davesmith00000