Exemplo n.º 1
0
 public static TreeForest <B> Apply <A, B>(this TreeForest <Func <A, B> > f, TreeForest <A> o)
 {
     return(f.SelectMany(g => o.Select(p => g(p))));
 }
Exemplo n.º 2
0
 public static TreeForest <A> Flatten <A>(this TreeForest <TreeForest <A> > o)
 {
     return(o.SelectMany(z => z));
 }
Exemplo n.º 3
0
 public static TreeForest <A> Flatten <A>(this TreeForest <TreeForest <A> > o) => o.SelectMany(z => z);