Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
msravi
on Jan 22, 2019
|
parent
|
context
|
favorite
| on:
For the Love of Pipes
Julia has a pipe operator, which applies a function to the preceding argument:
julia> 1:5 |> x->x.^2 |> x->2x
5-element Array{Int64,1}:
2 8 18 32 50
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
julia> 1:5 |> x->x.^2 |> x->2x
5-element Array{Int64,1}: