Skip to content

Commit

Permalink
striplines util
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Feb 27, 2017
2 parents d686efd + 2d5011e commit 50fb74f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/syntax/sugar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 50fb74f

Please sign in to comment.