@@ -26,9 +26,9 @@ First, `:examples-source`:
27 ^- {(list move) _+>.$}
27 ^- {(list move) _+>.$}
29− %+ turn (prey /the-path hid)
29+ %+ turn (prey /example-path hid)
30 |=({o/bone *} `move`[o %diff %noun arg])
30 |=({o/bone *} `move`[o %diff %noun arg])
31− ++ peer
31+ ++ peer-example-path
32 |= pax/path
32 |= pax/path
33 ^- {(list move) _+>.$}
33 ^- {(list move) _+>.$}
34 ~& [%subscribed-to pax=pax]
34 ~& [%subscribed-to pax=pax]
@@ -51,7 +51,7 @@ And secondly, `:examples-sink`:
52 ^- {(list move) _+>.$}
52 ^- {(list move) _+>.$}
53 ?: &(=(%on arg) available)
53 ?: &(=(%on arg) available)
54− [[[ost %peer /subscribe [our %source] /the-path] ~] +>.$(available |)]
54+ [[[ost %peer /subscribe [our %source] /example-path] ~] +>.$(available |)]
55 ?: &(=(%off arg) !available)
55 ?: &(=(%off arg) !available)
56 [[[ost %pull /subscribe [our %source] ~] ~] +>.$(available &)]
56 [[[ost %pull /subscribe [our %source] ~] ~] +>.$(available &)]
57 ~& ?:(available %not-subscribed %subscribed)
57 ~& ?:(available %not-subscribed %subscribed)
@@ -126,7 +126,7 @@ Here's some sample output of the two working together:
126 ~fintud-macrep:dojo> |start %examples-sink
126 ~fintud-macrep:dojo> |start %examples-sink
128 ~fintud-macrep:dojo> :examples-sink %on
128 ~fintud-macrep:dojo> :examples-sink %on
129− [%subscribed-to pax=/the-path]
129+ [%subscribed-to pax=/example-path]
130 %successfully-subscribed]
130 %successfully-subscribed]
132 ~fintud-macrep:dojo> :examples-source 5
132 ~fintud-macrep:dojo> :examples-source 5
@@ -137,7 +137,7 @@ Here's some sample output of the two working together:
137 ~fintud-macrep:dojo> :examples-source 6
137 ~fintud-macrep:dojo> :examples-source 6
139 ~fintud-macrep:dojo> :examples-sink %on
139 ~fintud-macrep:dojo> :examples-sink %on
140− [%subscribed-to pax=/the-path]
140+ [%subscribed-to pax=/example-path]
141 %successfully-subscribed]
141 %successfully-subscribed]
143 ~fintud-macrep:dojo> :examples-source 7
143 ~fintud-macrep:dojo> :examples-source 7
@@ -189,7 +189,7 @@ Thus, we're producing our state unchanged.
190Our list of moves is the result of a call to `++turn`. `++turn` is what
190Our list of moves is the result of a call to `++turn`. `++turn` is what
191many languages call "map" -- it runs a function on every item in a list
191many languages call "map" -- it runs a function on every item in a list
192−and collects the results in a list. The list is `(prey /the-path hid)`
192+and collects the results in a list. The list is `(prey /example-path hid)`
193and the function is the `|=` line right after it.
193and the function is the `|=` line right after it.
195`++prey` is a standard library function defined in `zuse`. It takes a
195`++prey` is a standard library function defined in `zuse`. It takes a
@@ -234,7 +234,7 @@ In `++poke-noun` we check our input to see both if it's `%on` and we're
234available. If so, we produce the move to subscribe to
234available. If so, we produce the move to subscribe to
235`:examples-source`:
235`:examples-source`:
237− [ost %peer /subscribe [our %source] /the-path]
237+ [ost %peer /subscribe [our %source] /example-path]
239Also, we set available to false (`|`) with `+>.$(available |)`.
239Also, we set available to false (`|`) with `+>.$(available |)`.