Skip to content

Commit

Permalink
add package in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vituri committed May 19, 2024
1 parent 63389bd commit bb56965
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/modify.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Functions to modify, filter and discard elements of a collection.
`modify` applies a function `f` to each element of `x`.

```@example modify
using TidierIteration;
x = [1:4;]
modify!(x, x->x^2)
x
Expand All @@ -28,6 +30,8 @@ modify_if(y, x->x^2, isodd)
We can discard some elements of `x` when a function `p` is false:

```@example keep
using TidierIteration;
x = [1:4;]
keep(x, isodd)
```
Expand Down

0 comments on commit bb56965

Please sign in to comment.