Skip to content

Commit

Permalink
Merge pull request #132 from ssured/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
paldepind authored Jan 3, 2017
2 parents eeed1e0 + 98d83d0 commit 7ffd1fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/scanmerge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ res() // 15
```javascript
const append = flyd.stream()
const remove = flyd.stream()
const arr = scanMerge([
const items = scanMerge([
[append, (list, elem) => list.concat(elem)],
, [remove, (list, item) => list.filter(elm => elm !== item)]
], [])
addItem(1)(2)(3)(4)(5)
rmItem(3)
append(1)(2)(3)(4)(5)
remove(3)
items() // [1,2,4,5]
```

0 comments on commit 7ffd1fd

Please sign in to comment.