コード例 #1
0
ファイル: Either.cs プロジェクト: ArnasJ/tlplib
 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));
コード例 #2
0
ファイル: Either_Validation.cs プロジェクト: yika-aixi/tlplib
 public static Either <ImmutableList <A>, B> asValidation <A, B>(
     this Either <A, B> e1
     )
 {
     return(e1.mapLeft(ImmutableList.Create));
 }