oxinabox/Pipe.jl

Underscore identifier doesn't do indexing replacement

FNj opened this issue · 4 comments

FNj commented

When piping DataFrames from DataFrames.jl, one encounters this error very easily:

@pipe df::DataFrame |> _[:Column]

produces:

syntax: all-underscore identifier used as rvalue around In[45]:1

That is weird, I'll have to have a play.

I suspect it isn't the DataFrames but something else, like getindex not having the AST expected.

FNj commented

You are right, this'll produce the same problem:

array = Vector(1:10)
@pipe array |> _[4]
FNj commented

I've proposed changes needed in a pull request: #9

Given the PR was merged this can be closed right? @FNj