4 ms·
Haven't seen the |> operator before. Is this Julia specific? e.g. used here: pdec = @pipeline (numf |> pca) + (numf |> ica)
by isusmelj 7y ago
Haven't seen the |> operator before. Is this Julia specific?
e.g. used here:
pdec = @pipeline (numf |> pca) + (numf |> ica)
- Renesat 7y agoIn Julia this operator works like this: (x |> f) == f(x)
- truculent 7y agoI believe that it appears in a few other functional languages. Off the top of my head: * F# and Elm have the same operator * Haskell’s lens library (I think) has the same one. In the standard library there is `$` which functions as a “reverse” pipe * R’s magrittr (part of the tidyverse which almost functions as an enhanced standard library) has `%>%` which works similarly