Example #1
0
 public string Format(Lst <X> list)
 => "[" + string.Join(",", list.Stream()) + "]";
Example #2
0
 public static Lst <Z> SelectMany <X, Y, Z>(this Lst <X> list, Func <X, Lst <Y> > lift, Func <X, Y, Z> project)
 => Lst.make(from x in list.Stream()
             from y in lift(x).Stream()
             select project(x, y));
Example #3
0
 public static Lst <X> Where <X>(this Lst <X> list, Func <X, bool> predicate)
 => Lst.make(from x in list.Stream() where predicate(x) select x);
Example #4
0
 public static Lst <Y> Select <X, Y>(this Lst <X> list, Func <X, Y> selector)
 => Lst.make(from x in list.Stream() select selector(x));