Exit Full View

Feather2 / documentation / InfixFunctions.md

Infix Function Calls

Infix functions take the form :

a action b

This is equivalent to :

a.action( b )

Where action is a method of a which takes 1 argument.

Or

action( a, b )

Where action is a function, with two arguments.

Unlike Kotlin, there is no need to declare the function to be an infix function.

Back to Contents