Exemple #1
0
 public static Either <IEnumerable <ElemTo>, Right> mapLeftC <CollFrom, Right, ElemFrom, ElemTo>(
     this Either <CollFrom, Right> e,
     Fn <ElemFrom, ElemTo> mapper
     ) where CollFrom : IEnumerable <ElemFrom> =>
 e.mapLeft(mapC <CollFrom, ElemFrom, ElemTo>(mapper));
 public static Either <ImmutableList <A>, B> asValidation <A, B>(
     this Either <A, B> e1
     )
 {
     return(e1.mapLeft(ImmutableList.Create));
 }