We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is hard to explain. here is a demo
I want to remove the second argument of a 3 argument function.
julia> using MacroTools: textwalk julia> code = """ test_scalar(cos, x -> -sin(x), x) test_scalar(tan, x -> 1 + tan(x)^2, x) test_scalar(sec, x -> sec(x) * tan(x), x) test_scalar(csc, x -> -csc(x) * cot(x), x) """; julia> function twoarg(expr) @capture(expr, t_(f_, d_, x_)) && t==:test_scalar && return :(test_scalar($(f), $x)) return expr end twoarg (generic function with 1 method) julia> textwalk(twoarg, code) |> println test_scalar(c, x) test_scalar(t, x) test_scalar(s, x) test_scalar(c, x)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is hard to explain.
here is a demo
I want to remove the second argument of a 3 argument function.
The text was updated successfully, but these errors were encountered: