Skip to content

Commit

Permalink
docs(rstream-graph): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 24, 2018
1 parent 2b9a888 commit 32fb7ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/rstream-graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ const graph = rsg.initGraph(state, {
// from values in the state atom
add: {
fn: rsg.add,
ins: [
{ path: "a" },
{ path: "b" }
],
ins: {
a: { path: "a" },
b: { path: "b" }
},
},
// this node receives values from the `add` node
// and the given iterable
mul: {
fn: rsg.mul,
ins: [
{ stream: "add" },
{ stream: () => rs.fromIterable([10, 20, 30]) }
],
ins: {
a: { stream: "add" },
b: { stream: () => rs.fromIterable([10, 20, 30]) }
},
}
});

Expand Down

0 comments on commit 32fb7ff

Please sign in to comment.