Comment

Comment by jessebett

I'm not sure what `inspect` does, but can you clarify what you mean by proper pipes?

  julia> x = [3,2,4,5]
  4-element Array{Int64,1}:
   3
   2
   4
   5

  julia> x |> sort |> x->reshape(x,(2,2))
  2×2 Array{Int64,2}:
   2  4
   3  5
works.

It gives a syntax error if the pipes are on the newline. Is that your gripe?

Or is it that it doesn't automatically partially apply the function, requiring you to use an anonymous function, like `x->reshape(x,(2,2))` instead of as you have it `resize(100,100)` implicitly. I prefer the explicitness.

parent jessebett 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton