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
It would be nice if these would work:
julia> 1:9 |> filter(isodd) 5-element Array{Int64,1}: 1 3 5 7 9 julia> sqrt(16) |> convert(Int) 4 julia> map(convert(Int) ∘ sqrt, [4, 9, 16]) 3-element Array{Int64,1}: 2 3 4
Probably there are more functions like this, that could return function with single argument to be used in chaining or composition.
This is not easy to do in all cases, for example split with single argument can't be converted to function.
split
The text was updated successfully, but these errors were encountered:
See #5571, #24990 and #26436 for related discussions.
Sorry, something went wrong.
This JIRA was closed without a clear explanation of what if anything were added to the language. Per instruction by @StefanKarpinski have posted a question here https://discourse.julialang.org/t/does-julia-support-chaining-of-collections-methods-function-chaining-at-this-point/32519
No branches or pull requests
It would be nice if these would work:
Probably there are more functions like this, that could return function with single argument to be used in chaining or composition.
This is not easy to do in all cases, for example
split
with single argument can't be converted to function.The text was updated successfully, but these errors were encountered: