public static void LstAp2(Lst <Func <int, Func <int, int> > > funcs, Lst <int> args1, Lst <int> args2, IEnumerable <int> expected) { var res = args2.Ap(args1.Ap(funcs)); Assert.Equal(expected, res as IEnumerable <int>); }
public static void FuncListAp1(Lst <Func <int, int> > funcs, Lst <int> args, IEnumerable <int> expected) { var res = args.Ap(funcs); Assert.Equal(expected, res as IEnumerable <int>); }