3.1.1.1 Function Objects

class Function
Function( f, domain, codomain, [f_inverse=None])

The first argument f is a function of one argument that takes objects in domain and returns objects in codomain. The Map object, when called with argument x, tries to coerce it into the domain, if possible, and raises an error if it is not.

Instances of class Function have the following methods (in addition to inherited methods and special methods):

codomain,$  $ domain

These methods are defined as follows:

codomain( )

domain( )

Instances of class Function also have the following special methods:

__call__( x)

__invert__( )

See About this document... for information on suggesting changes.