Skip to content

Commit

Permalink
Merge pull request #98 from hgeorgako/patch-1
Browse files Browse the repository at this point in the history
Update index.md
  • Loading branch information
shashi committed Jun 2, 2016
2 parents 0c032a3 + 57e5e8a commit 393520a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/index.md
Expand Up @@ -193,7 +193,7 @@ julia> value(y)
julia> push!(x, 3)
julia> value(y)
3
6
```

When we wrote `y=foldp(+, 0, x)` we created a signal `y` which collects updates to `x` using the function `+` and starting from `0`. In other words, `y` holds the sum of all updates to `x`.
Expand Down Expand Up @@ -228,6 +228,8 @@ You can drop repeated updates to a signal with [`droprepeats`](api.html#droprepe
```{.julia execute="false"}
julia> p = Signal(0)
julia> droprepeats(p)
julia> foreach(println, p)
julia> push!(p, 0)
Expand Down

0 comments on commit 393520a

Please sign in to comment.