Piping and broadcasting

You’re looking for this:

julia> (1,2,3) .|> (-) .|> sin
(-0.8414709848078965, -0.9092974268256817, -0.1411200080598672)

Since - is a binary operator, using it infix in a pipe in this way requires parentheses.

1 Like