[1,2,3] |> map(print)
#ERROR: MethodError: objects of type Nothing are not callable
#Stacktrace:
# [1] |>(x::Vector{Int64}, f::Nothing)
# @ Base .\operators.jl:966
# [2] top-level scope
# @ REPL[25]:1
readdir(".") |> map(x -> joinpath(abspath("."), x))
# ERROR: MethodError: no method matching (::var"#9#10")()
# Closest candidates are:
# (::var"#9#10")(::Any) at REPL[23]:1
# Stacktrace:
# [1] map(f::var"#9#10")
# @ Base .\abstractarray.jl:2947
# [2] top-level scope
# @ REPL[23]:1
[1,2,3] |> map(x -> x+2)
# ERROR: MethodError: no method matching (::var"#11#12")()
# Closest candidates are:
# (::var"#11#12")(::Any) at REPL[24]:1
# Stacktrace:
# [1] map(f::var"#11#12")
# @ Base .\abstractarray.jl:2947
# [2] top-level scope
# @ REPL[24]:1
map 在管道怎么正确使用