Skip to content

Commit

Permalink
Deploying to gh-pages from @ 52e9245 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmcsherry committed Mar 23, 2024
1 parent 8ff0a38 commit a451543
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
7 changes: 5 additions & 2 deletions chapter_2/chapter_2_4.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ <h1 id="creating-operators"><a class="header" href="#creating-operators">Creatin
}
}
}
});
})
.container::&lt;Vec&lt;_&gt;&gt;();
});
}</code></pre></pre>
<p>What is going on here? The heart of the mess is the dataflow operator <code>unary</code>, which is a ready-to-assemble dataflow operator with one input and one output. The <code>unary</code> operator takes three arguments (it looks like so many more!): (i) instructions about how it should distribute its inputs, (ii) a tasteful name, and (iii) the logic it should execute whenever timely gives it a chance to do things.</p>
Expand Down Expand Up @@ -252,6 +253,7 @@ <h3 id="capabilities"><a class="header" href="#capabilities">Capabilities</a></h
else { activator.activate(); }
}
})
.container::&lt;Vec&lt;_&gt;&gt;()
.inspect(|x| println!(&quot;number: {:?}&quot;, x));
});
}</code></pre></pre>
Expand Down Expand Up @@ -289,7 +291,8 @@ <h3 id="stateful-operators"><a class="header" href="#stateful-operators">Statefu
}
}
}
});
})
.container::&lt;Vec&lt;_&gt;&gt;();
});
}</code></pre></pre>
<p>This example just captures an integer, but you could just as easily define and capture ownership of a <code>HashMap</code>, or whatever complicated state you would like repeated access to.</p>
Expand Down
3 changes: 2 additions & 1 deletion chapter_2/chapter_2_5.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ <h2 id="maintaining-word-counts"><a class="header" href="#maintaining-word-count
}
}
})
<span class="boring"> .inspect(|x| println!(&quot;seen: {:?}&quot;, x))
<span class="boring"> .container::&lt;Vec&lt;_&gt;&gt;()
</span><span class="boring"> .inspect(|x| println!(&quot;seen: {:?}&quot;, x))
</span><span class="boring"> .probe_with(&amp;mut probe);
</span><span class="boring"> });
</span><span class="boring">
Expand Down
10 changes: 7 additions & 3 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,8 @@ <h2 id="other-operators"><a class="header" href="#other-operators">Other operato
}
}
}
});
})
.container::&lt;Vec&lt;_&gt;&gt;();
});
}</code></pre></pre>
<p>What is going on here? The heart of the mess is the dataflow operator <code>unary</code>, which is a ready-to-assemble dataflow operator with one input and one output. The <code>unary</code> operator takes three arguments (it looks like so many more!): (i) instructions about how it should distribute its inputs, (ii) a tasteful name, and (iii) the logic it should execute whenever timely gives it a chance to do things.</p>
Expand Down Expand Up @@ -890,6 +891,7 @@ <h3 id="capabilities"><a class="header" href="#capabilities">Capabilities</a></h
else { activator.activate(); }
}
})
.container::&lt;Vec&lt;_&gt;&gt;()
.inspect(|x| println!(&quot;number: {:?}&quot;, x));
});
}</code></pre></pre>
Expand Down Expand Up @@ -927,7 +929,8 @@ <h3 id="stateful-operators"><a class="header" href="#stateful-operators">Statefu
}
}
}
});
})
.container::&lt;Vec&lt;_&gt;&gt;();
});
}</code></pre></pre>
<p>This example just captures an integer, but you could just as easily define and capture ownership of a <code>HashMap</code>, or whatever complicated state you would like repeated access to.</p>
Expand Down Expand Up @@ -1231,7 +1234,8 @@ <h2 id="maintaining-word-counts"><a class="header" href="#maintaining-word-count
}
}
})
<span class="boring"> .inspect(|x| println!(&quot;seen: {:?}&quot;, x))
<span class="boring"> .container::&lt;Vec&lt;_&gt;&gt;()
</span><span class="boring"> .inspect(|x| println!(&quot;seen: {:?}&quot;, x))
</span><span class="boring"> .probe_with(&amp;mut probe);
</span><span class="boring"> });
</span><span class="boring">
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit a451543

Please sign in to comment.