src/swipl-devel/packages/xpce/man/refmanual/md/function.md

class function {#class-function}

A function object is a code object that, when <-execute'd, returns a PCE data object as the virtual machine instruction get(). Functions are evaluated iff:

Explicit evaluation is achieved using <-execute and <-forward. Quoting (e.i. delaying evaluation) is achieved using a quote_function object.

PCE currently provides the following functions:

NOTE: Many methods defined on class object reappear on this class. The message passing system will, when the receiver is a subclass of class function, not evaluate the function if the method is defined at the level of class function or lower in the class hierarchy.

@see type<-check @see class code

Get methods {#class-function-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.