Composition of partial functions
ID: composition-of-partial-functions
For partial functions and , their function composition is defined precisely onFor example, composing with , as real partial functions, gives only on .
More generally, strict composition of partial functions makes defined only if every is defined and is defined on the resulting tuple. An argument discarded by the outer function must still be defined: the expression with the everywhere-zero constant function remains undefined at zero. A representation in a programming language using lazy evaluation therefore needs an explicit check of the intermediate definedness conditions.
New to topics? Read the docs here!