-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Add a new module meta for LODA metaprogramming. It should provide util function that combine two programs to produce a new program.
The following combinations could be interesting for a start.
Composition
Let A and B be the in integer sequences generated be the two input program. The output program should generated the composition of A and B, i.e. C(n) = B(A(n)).
Elementwise combination
In addition to the two input porgrams, this also gets an arithmetic operation types as third argument. The output program should generate the sequence given by the elementwise combination of the inputs, i.e. C(n) = A(n) X B(n) where _ X _ is the given binary arithemetic operation.
Union
Let A and B be strictly increasing integer sequences representing sets of integers. The output program should generate again a strictly increasing sequences that represents the union of the two integer sets: C = A u B.