示例#1
0
        public static Cons Reductions(IApply reducer, IEnumerable seq, params object[] args)
        {
            var kwargs = ParseKwargs(args, new string[] { "initial-value", "key" }, MissingValue, null);
            var seed   = kwargs[0];
            var key    = GetClosure(kwargs[1]);

            return(AsLazyList(SeqBase.Reductions(reducer, seq, seed, key)));
        }
示例#2
0
 public static Cons Reductions(IApply reducer, object seed, IEnumerable seq)
 {
     return(AsLazyList(SeqBase.Reductions(reducer, seed, seq)));
 }