num

gapt.examples.church_numerals.num
object num

A straightforward implementation of Church numerals. Numbers up to 50000 should work fine, above various functions (beta-reduction, substitution, printing, ...) run out of stack.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
num.type

Members list

Value members

Concrete methods

def alpha(x: Var, a: Expr, n: Int, acc: Expr => Expr): Expr
def apply(n: Int): Abs