diff --git a/src/syntax/sugar.jl b/src/syntax/sugar.jl index a3c88fe..6a8c54b 100644 --- a/src/syntax/sugar.jl +++ b/src/syntax/sugar.jl @@ -85,6 +85,12 @@ end immutable SkipFrame end +function striplines(v) + postwalk(v) do v + isa(value(v), Line) || isa(value(v), Frame) ? v[1] : v + end +end + # Static tuples # TODO: just use `getindex` and `tuple` to represent these?