docs: a runnable example for named merge slots and graph inputs - #17
Merged
Merged
Conversation
apps/namedPipeline covers names in a graph's wiring: a merge whose same-typed slots are matched by name, a lambda merge with named slots, a graph with several named inputs fed by push() and filter(), the build-time and feed-time checks the names enable, and toMermaid labelling a merge's edges with its slot names. EXAMPLE.md section 10 walks through it. The named-slot and named-input blocks (3c and 4b) move there from apps/textPipeline, which keeps to the core building blocks.
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
apps/namedPipeline, one example app for the features of #15 and #16. Following the one-app-per-theme convention, the named-slot and named-input examples move there fromapps/textPipeline.The app shows
(after: reversed, before: upper) -> Compare, matched by namepush()for one,filter(GraphInputs{}.set(…).set(…))for both, and the errors thrown for an unknown key or a mistyped valuein.<key>againstGraphInputs::of, reported at build timeregisterTypedMergeFilterwith names), holes filled with defaultstoMermaid, labelling the merge's edges with the slot namesDocs
Not included: the "done" paragraph in TODO.md still lists only the stateful and composite apps; it will be updated with the pending TODO.md edits.
Built with the
windows-msvc-debug-developer-modepreset, no warnings;namedPipelineandtextPipelineoutput matches EXAMPLE.md.