import * as E from 'fp-ts/Either'; type Either = E.Either; export const rights = (eithers: Array>): Array => { const r: A[] = []; for (const e of eithers) { if (E.isRight(e)) { r.push(e.right); } } return r; };