Custom Forward Pipe Operator (courtesy F#) in Swift

Marius Schulz:

F# is a functional programming language that implements the so-called forward pipe operator, written as |>. The operator passes the result on the left side to the function on the right side.

Marius goes on to show how to create a custom forward pipe operator in Swift to chain functions.