Class

com.github.jonnylaw.model

Leaf

Related Doc: package model

Permalink

case class Leaf[A](value: A) extends Tree[A] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Tree[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Leaf
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Tree
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Leaf(value: A)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +|(that: Tree[A]): Tree[A]

    Permalink

    Add a Tree to the left of the tree

    Add a Tree to the left of the tree

    Definition Classes
    Tree
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def add(that: Tree[A])(implicit N: Numeric[A]): Tree[A]

    Permalink

    Add two (same shape) trees together, each leaf node is added

    Add two (same shape) trees together, each leaf node is added

    Definition Classes
    Tree
  6. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatten: List[A]

    Permalink
    Definition Classes
    Tree
  11. def fold[B](z: B)(f: (A) ⇒ B)(g: (B, B) ⇒ B): B

    Permalink

    Reduce the tree to a value, by recursively applying fold to the branches, combining the results using g and transforming the leaves using f

    Reduce the tree to a value, by recursively applying fold to the branches, combining the results using g and transforming the leaves using f

    Definition Classes
    Tree
  12. def foldMap(f: (A) ⇒ A)(implicit m: Monoid[A]): A

    Permalink
    Definition Classes
    Tree
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getNode(n: Int): A

    Permalink

    Get the contents of the leaf node element at position n from the left, indexed from 0

    Get the contents of the leaf node element at position n from the left, indexed from 0

    n

    the node position from the left

    Definition Classes
    Tree
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def prettyPrint: String

    Permalink
    Definition Classes
    Tree
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val value: A

    Permalink
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def zipWith[B, C](that: Tree[B])(f: (A, B) ⇒ C): Tree[C]

    Permalink

    Combine two trees which are the same shape using the function f

    Combine two trees which are the same shape using the function f

    Definition Classes
    Tree
  26. def |+(that: Tree[A]): Tree[A]

    Permalink

    Add a Tree to the right of the tree

    Add a Tree to the right of the tree

    Definition Classes
    Tree

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Tree[A]

Inherited from AnyRef

Inherited from Any

Ungrouped