stanza equivalent of piping operator?


Yves Cloutier
 

Maybe I missed it in the docs, but does stanza have something like the |> operator like in F# or Elixir to chain functions together to, for example, pass the otput of a function as the input of another like:

val x = [ 2 4 3 5 ] |> sort  |> to-seq


 

There isn't currently a |> operator, but there is a $ operator, which does the same thing but the order is reversed.

val x = to-seq $ sort $ [2, 4, 3, 5]


Yves Cloutier
 

Thanks Patrick, this work too