Functions as Equations
The graph representation of a function provides insight into its structure but is inconvenient to use in practice.
duplicate : R ? R x R, = {1, 4, 7}
which : (B +N) ? {isbool, isnum}
which(m) = cases m of isB(b) ? isbool; isN(n) ? isnum end
nothing : B N ? B
- no equational definition (domain empty)!