Skip to content

Commit 322806d

Browse files
committed
utils: example of rmlines
Ref #24, #109
1 parent 91554c9 commit 322806d

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)