Skip to main content

Function Call

Use this syntax to invoke a function and retrieve its result.

knot
func add(lhs: integer, rhs: integer) -> lhs + rhs;
const result = add(123, 456);
knot
func add(lhs: integer, rhs: integer) -> lhs + rhs;
const result = add(123, 456);