Example Cartesian diagrams with String labels


A cell with an 'a'
a =
C.init "a"A cell with a 'b'
A cell with a 'c'
Wow a cell with a 'd'
We can compose a b and c in sequence Ah, now it is starting to make sense...
a |> C.before b |> C.before cCompose a and b in parallel
a |> C.aside bCompose a and b in parallel but b first
Compose axb and cxd in sequence. We can expect a to connect with c and b to connect with d
let
cxd =
c
|> C.aside d
in
axb |> C.before cxdCompose axb and cxd in sequence before 'e'
The 'e' node needs to be declared with 2 inputs so the outputs from both 'c' and 'd'
will connect to it. Otherwise the 'd' output will be dangling (which is ok if something else will be connected later)
A simple bypass
let
source =
C.initWith 1 3 "src"
sink =
C.initWith 1 1 "sink"
in
source |> C.before (sink |> C.aside bxa)An example of how to make a bypass
let
source3 =
C.initWith 1 3 "src"
sink2 =
C.initWith 2 1 "sink"
extraLane =
C.init "bypass"
conduce =
axb_cxd_e |> C.aside extraLane
in
source3 |> C.before conduce |> C.before sink2The diagram for the package logo
C.init "elm"
|> C.before (C.init "wiring")
|> C.before (C.init "diagrams")
A basic cell with a label String of 'Cell'