Applies passed function to this instance and returns function result. Also known as a reverse function application, |> (Reason/ReScript, F#, OCaml), & (Haskell), # (PureScript) or a pipe operator.
|>
&
#
some(1).pipe(x => x.isEmpty) // falsenone.pipe(x => x.isEmpty) // true
Supports multiple functions.
opt(1).pipe( // Some(1) x => x.isEmpty, // false x => !x, // true) // true
pipe
Functions in call chain
Applies passed function to this instance and returns function result. Also known as a reverse function application,
|>
(Reason/ReScript, F#, OCaml),&
(Haskell),#
(PureScript) or a pipe operator.