yorick banner

Home

Manual

Packages

Global Index

Keywords

Quick Reference

Yorick Language Reference

Calling Functions

f(arg1, ..., argN ) invoke f as a function
f, arg1, ..., argN invoke f as a subroutine, discard return

Arguments which are omitted are passed to the function as nil. In addition to positional arguments, a function (invoked by either of the above two mechanisms). Keyword arguments look like this:

f,arg1, keyA= exprA, keyB= exprB, arg2, ...

where keyA and keyB are the names of keyword arguments of the function f. Omitted keywords are passed to f as nil values. Keywords typically set optional values which have defaults.