Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftcustom operatorsSingle-choice MCQ

When defining a custom operator like `infix operator |>`, what must you also do for it to compile and behave predictably?

infix operator |>: AdditionPrecedence func |> <A, B>(value: A, transform: (A) -> B) -> B { transform(value) }