bubble-operator-upwards
2023-10-21
A function that "bubbles an operator upwards" in a form, demultiplexing all alternative branches by way of cartesian product. This operation is notably useful for easy implementation of certain kinds of shorthand notations in macros. A cartesian-product function is also exported, as it's needed to implement the main function.
Author
Jean-Philippe Paradis <hexstream@hexstreamsoft.com>
License
Unlicense
Project's home: https://www.hexstreamsoft.com/libraries/bubble-operator-upwards/
bubble-operator-upwards is a function that "bubbles an operator
upwards" in a form, demultiplexing all alternative branches by way of
cartesian product. This operation is notably useful for easy
implementation of certain kinds of shorthand notations in macros. A
cartesian-product function is also exported, as it's inherently needed
to implement the main function.
This library is in the Public Domain.
See the UNLICENSE file for details.