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)); }
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)); }