8.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
Obligatory: Raku supports pipe in both directions, passing input as the last parameter instead of requiring the function to take only one parameter. It also has a shorthand:
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>; my @final-array = @array.unique.sort.reverse; say @final-array;
$foo |> str_replace('hello', 'hi', ?);