Composing `Either` Values into an Object and Collecting `L` Values into an Array

I have a bunch of Eithers whose Rs I'd like to compose into an object, or whose Ls (all of them, not just the first one that may appear), I'd like to collect and return as an array (if there are any). Is there an elegant way to do this?
Was this page helpful?