gapt.examples.church_numerals
Members list
Type members
Classlikes
Conditional if c = 0 then e1 else e2
Conditional if c = 0 then e1 else e2
Attributes
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
cond.type
Computes the int value of a Church numeral.
Computes the int value of a Church numeral.
Attributes
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
int_of_num.type
Checks if lambda expression is a Church numeral.
Checks if lambda expression is a Church numeral.
Attributes
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
is_num.type
A straightforward implementation of Church numerals. Numbers up to 50000 should work fine, above various functions (beta-reduction, substitution, printing, ...) run out of stack.
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
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
num.type
Addition of Church numerals. Does not check if the input is a church numeral.
Addition of Church numerals. Does not check if the input is a church numeral.
Attributes
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
plus.type
Multiplication of Church numerals. Does not check if the input is a church numeral.
Multiplication of Church numerals. Does not check if the input is a church numeral.
Attributes
- Source
- ChurchNumerals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
times.type