yarrow-diagrams.readthedocs.io - yarrow — yarrow documentation

Example domain paragraphs

Yarrow is a library for representing large string diagrams : networks of operations with multiple inputs and outputs. Here’s a simple string diagram with two operations, summary and divide .

Fig. 1 A diagram representing a simple program for computing the mean of a list of numbers. 

Notice that the Count and Sum wires are crossed: the diagram represents Sum / Count and not Count / Sum . Think of operations as having an ordered list of input and output ports , in the same way a Python function has an ordered list of arguments .

Links to yarrow-diagrams.readthedocs.io (2)