Implement by simply calling MultisetSubstitutionSystem, so has similar limitations.
Comments
This is similar to what the MultiwaySystem resource function does.
Does not support multiple branchlike outputs per event, as the multiset system does not support it. Can be added with a new head (e.g., Branchlike[...] or AlternativeOutputs[...]).
I added "InputIndex" as an ordering function, which is redundant as "InputTokenIndices" and "SortedInputTokenIndices" do the same thing for the atomic system. They just seem awkward if there is only one input token by design, so I added "InputIndex". Let me know what you think.
This is ready for review, but it requires the MultisetSubstitutionSystem docs to be merged first.
Examples
Multiple rules are required for branching at the moment:
Changes
AtomicStateSystem
.MultisetSubstitutionSystem
, so has similar limitations.Comments
MultiwaySystem
resource function does.Branchlike[...]
orAlternativeOutputs[...]
)."InputIndex"
as an ordering function, which is redundant as"InputTokenIndices"
and"SortedInputTokenIndices"
do the same thing for the atomic system. They just seem awkward if there is only one input token by design, so I added"InputIndex"
. Let me know what you think.MultisetSubstitutionSystem
docs to be merged first.Examples
This change is