Skip to content

Metaprogramming module #556

@ckrause

Description

@ckrause

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions