So it's basically Hack syntax for pipes with just ;_= instead of |> and _ instead of %. And you need to 'mark' the beginning of the pipeline with `let _=`
Additional 'benefit' is that until you leave the scope you can access output of the last pipe through _.
You can always use ;_= for consistency and pre-experess you intent to use the piping in the current scope by doing `let _;` ahead of time:
You can also cram it into one line with semicolon:
So it's basically Hack syntax for pipes with just ;_= instead of |> and _ instead of %. And you need to 'mark' the beginning of the pipeline with `let _=`Additional 'benefit' is that until you leave the scope you can access output of the last pipe through _.
You can always use ;_= for consistency and pre-experess you intent to use the piping in the current scope by doing `let _;` ahead of time:
Full disclosure, I hate all of the above but I love Hack syntax with |> and %.To better confer the direction of the pipe you might even use the letter that is oriented to the right:
And if you want to use your pipe as an expression or return it from the function , instead of ; might be better: Surprisingly semicolon auto-insertion doesn't interfere with this: