コード例 #1
0
        public ISubroutine <TR> Subroutine <TR, T0, T1, T2>(Func <IGenerator, T0, T1, T2, TR> fun, T0 t0, T1 t1, T2 t2)
        {
            var sub = new Subroutine <TR>();

            sub.Sub = tr => fun(sub, t0, t1, t2);
            return(Prepare(sub));
        }
コード例 #2
0
        public ISubroutine <TR> Subroutine <TR, T0>(Func <IGenerator, T0, TR> fun, T0 t0)
        {
            var sub = new Subroutine <TR>();

            sub.Sub = tr => fun(sub, t0);
            return(Prepare(sub));
        }