Object/Trait

io.chymyst.ch

TermExpr

Related Docs: trait TermExpr | package ch

Permalink

object TermExpr

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TermExpr
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applyCurried(curriedFunction: TermExpr, args: Seq[TermExpr]): TermExpr

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def equiv(e1: TermExpr, e2: TermExpr): Boolean

    Permalink
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def findAll[R](inExpr: TermExpr)(pred: PartialFunction[TermExpr, R]): Seq[R]

    Permalink
  12. def findFirst[R](inExpr: TermExpr)(pred: PartialFunction[TermExpr, R]): Option[R]

    Permalink
  13. def foldMap[R](termExpr: TermExpr)(p: PartialFunction[TermExpr, R])(implicit arg0: Monoid[R]): R

    Permalink
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def id(t: TypeExpr): TermExpr

    Permalink

    Convenience method to produce the identity function term of a given type.

    Convenience method to produce the identity function term of a given type.

    Example usage:

    def idAB[A, B] = TermExpr.id(typeExpr[A ⇒ B])
    idAB.prettyPrint == "x ⇒ x"
    idAB.t.prettyPrint == "(A ⇒ B) ⇒ A ⇒ B"
    t

    Type for the argument of the identity function.

    returns

    A term for the identity function.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lambdaTerm(f: Any): Option[TermExpr]

    Permalink
  19. implicit val monoidDouble: Monoid[Double]

    Permalink
  20. implicit def monoidSeq[T]: Monoid[Seq[T]]

    Permalink
  21. implicit def monoidSet[T]: Monoid[Set[T]]

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def size(termExpr: TermExpr): Int

    Permalink

    Approximate size of the term.

    Approximate size of the term. The computation adds 1 every time any subterms are combined in any way. For example, the size of the term x ⇒ y ⇒ x is 5.

    termExpr

    A term.

    returns

    Number of elements in the term.

  26. def subst(replaceVar: VarE, byExpr: TermExpr, origExpr: TermExpr): TermExpr

    Permalink

    Replace all non-free occurrences of variable replaceVar by expression byExpr in origExpr.

    Replace all non-free occurrences of variable replaceVar by expression byExpr in origExpr.

    replaceVar

    A variable that may occur freely in origExpr.

    byExpr

    A new expression to replace all free occurrences of that variable.

    origExpr

    The original expression.

    returns

    A new expression where the variable has been substituted.

  27. def substMap(termExpr: TermExpr)(p: PartialFunction[TermExpr, TermExpr]): TermExpr

    Permalink
  28. def substTypeVar(replaceTypeVar: TP, byTypeExpr: TypeExpr, inExpr: TermExpr): TermExpr

    Permalink
  29. def substTypeVars(inExpr: TermExpr, substitutions: Map[TP, TypeExpr]): TermExpr

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped