コード例 #1
0
        public static List <ApplicativeGroup> Split <A>(Fetch <A> fetch)
        {
            var type = fetch.GetType();

            Assert.IsTrue(type.GetGenericTypeDefinition() == typeof(Bind <, ,>));
            return(SplitApplicative.SplitBind(fetch.CollectedExpressions, fetch.Initial));
        }
コード例 #2
0
        public Haxl ToHaxlFetch(string bindTo, Scope scope)
        {
            var bindSplit = SplitApplicative.SplitBind(CollectedExpressions, Initial);
            var newScope  = IsLet ? scope : new Scope(scope);

            return(HaxlApplicative.ToFetch(bindSplit, bindTo, newScope));
        }