Skip to content

Commit 253f22a

Browse files
authored
Merge pull request #110 from iblis17/ib/doc-rmlines
utils: example of `rmlines`
2 parents cd1c5a1 + 322806d commit 253f22a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ iscall(ex, f) = isexpr(ex, :call) && ex.args[1] == f
5757
Remove the line nodes from a block or array of expressions.
5858
5959
Compare `quote end` vs `rmlines(quote end)`
60+
61+
### Examples
62+
63+
To work with nested blocks:
64+
65+
```julia
66+
prewalk(rmlines, ex)
67+
```
6068
"""
6169
rmlines(x) = x
6270
function rmlines(x::Expr)

0 commit comments

Comments
 (0)