Skip navigation links

Package org.kink_lang.kink.funbuilder

Utility package to build basic functions.

See: Description

Package org.kink_lang.kink.funbuilder Description

Utility package to build basic functions.

Example:

 Fun fun = Fun.builder()
     .withToString(() -> "<fun:do-something>")
     .build((receiver, firstArg, secondArg) -> doSomething(firstArg, secondArg));
 

The function of the package is accessible by method chains started by Fun.builder() as shown above. Therefore, in almost all cases, there is no need to explicitly import calsses/interfaces in this package.

See Also:
Fun.builder()
Skip navigation links