The piping operator |> is very useful, especially when working in the REPL. However I do not find it convenient to type, it requires some finger gymnastic and it’s not very fast. Maybe it is the case because I have a french keyboard.
Does anyone knows a VSCode plugin that creates a shortcut to insert it ?
@HenriDeh, do you have know if now the shortcut command for the pipe will work in the REPL? I have been trying to make it work, but it’s been to no avail. Please let me know if you know a way — thank you.
I quickly gave up on using this. As far as I can remember it did not work reliably and ended up being more time consuming than typing the symbols normally.
Maybe have a look at our new Pipette.jl – it lets you enter " |> " via double-tapping cursor-right at the end of a REPL line, or pressing [Ctrl+cursor right] anywhere on a line. (It is also now in the general registry!)
There are also macro-based solutions like Chain.jl and Lazy.jl that obviate the need for the |> altogether by letting native Julia syntax stand for chained/piped function calls.