since import * as fc from 'fast-check' ; import { Either , left , right } from 'fp-ts/lib/Either' ; since export function getRight < L , A > ( arb ) { return arb . map ( a => right ( a ) ) ; } since export function getLeft < L , A > ( arb ) { return arb . map ( l => left ( l ) ) ; } since export function getEither < L , A > ( leftArb , rightArb ) { return fc . oneof ( getLeft < L , A > ( leftArb ) , getRight < L , A > ( rightArb ) ) ; }