Fork me on GitHub
hiredman00:11:20 isn't all that dynamic but it creates lvars via a function call, and then uses l/composeg to constrain all the generate lvars


my number of goals is also dynamic based on the data. Clearly I can read the source and call the macro expansions directly, just wondering how ‘against the grain’ that is

hiredman00:11:22 might another interesting thing to look at, particular the usage of to-stream


I kind of doubt you actually want that, it would be similar to a clojure program with a dynamic number of functions based on the data, it is possible, but much more likely you have a fixed number of functions and you want to drive the composition via the data


but, for example, that code I linked generates a goal per items in a map, and then composes them all in to one goal


I think there are a fixed set of functions, with an unknown number of function calls


I don't think that is against the grain at all


likely you'll end up with a lot of stuff similar pos-int-vals in that first example, where you map some function over all your data generating a goal for each part of the data, then reduce it with composeg to create a single goal


composeg is conjuction of goals, and there is another one for disjunction