I think i’m missing something obvious about the syntax but I don’t know what… the thing is to fetch the current value from a pipe and pass it as argument to the next function, my current implementation looks like:
You can use anonymous functions in pipes like so foo |> (&something(&1, &1.bar)).()
However I’d recommend using something like the aforementioned then/2 or perhaps rewriting the logic in a way that would make functions more composable in the first place.
I am late here so I’ll just echo the others: either use then/2 or just make your own functions that accept one thing and return something from inside of it, which makes pipes more composable and more readable.