Beispiel #1
0
 public NonEmptyList <TReturn> ComputeWith <TReturn>(Func <T, NonEmptyList <TReturn> > f)
 {
     return(NonEmptyList <TReturn> .Construct(this.SelectMany(v => f(v))));
 }
Beispiel #2
0
 public NonEmptyList <TReturn> Apply <TReturn>(NonEmptyList <Func <T, TReturn> > f)
 {
     return(NonEmptyList <TReturn> .Construct(f.SelectMany(fElem => this.FMap(fElem))));
 }