Ejemplo n.º 1
0
        /// <inheritdoc />
        public ISubroutine <TR> NewSubroutine <TR, T0, T1>(Func <IGenerator, T0, T1, TR> fun, T0 t0, T1 t1)
        {
            var sub = new Subroutine <TR>();

            sub.Sub = tr => fun(sub, t0, t1);
            return(Prepare(sub));
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public ISubroutine <TR> NewSubroutine <TR>(Func <IGenerator, TR> fun)
        {
            var sub = new Subroutine <TR>();

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