Trait/Object

org.specs2.data

Trees

Related Docs: object Trees | package data

Permalink

trait Trees extends AnyRef

Utility methods for scalaz Trees

Self Type
Trees
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Trees
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. implicit class CleanedTree[A] extends AnyRef

    Permalink

    This implicit can be used to remove None nodes in a Tree

  2. implicit class TreeLocx[T] extends AnyRef

    Permalink

    Implicit definition to add more functionalities to the TreeLoc class

  3. implicit class Treex[A] extends AnyRef

    Permalink

    Implicit definition to add more functionalities to the Tree trait

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bottomUp[A, B](t: Tree[A], f: (A, Stream[B]) ⇒ B): Tree[B]

    Permalink

    map a Tree from leaves to root by replacing each node with the result of a function taking that node and the mapping of all its children.

    map a Tree from leaves to root by replacing each node with the result of a function taking that node and the mapping of all its children.

    This is used in JUnit to map a Tree[Description] where no Description objects are related to a Tree[Description] where each node returns the children nodes on the "getChildren" method

  6. def clean[A](t: Tree[Option[A]])(implicit initial: A): Tree[A]

    Permalink

    remove None nodes from a tree

  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 equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flattenLeft[A](tree: Tree[A]): Stream[A]

    Permalink

    flatten the tree using a foldLeft to avoid SOF

  12. def flattenSubForests[A](tree: Tree[A]): Tree[A]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 parentLocs[T](t: TreeLoc[T], ps: Seq[TreeLoc[T]] = Vector()): Seq[TreeLoc[T]]

    Permalink

    returns

    the list of all parent locs from a given TreeLoc

  20. def prune[A](t: Tree[A], f: (Tree[A]) ⇒ Option[A])(implicit initial: A): Tree[A]

    Permalink

    remove nodes from a tree if they are None according to a function f

  21. def prune[A, B](t: Tree[A], f: (A) ⇒ Option[B]): Option[Tree[B]]

    Permalink

    remove nodes from a tree if they are None according to a function f

  22. def size[A](t: TreeLoc[A]): Int

    Permalink

    returns

    the number of nodes in a TreeLoc

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. implicit def treeIsSized[T]: Sized[Tree[T]]

    Permalink
  26. implicit def treeLocIsSized[T]: Sized[TreeLoc[T]]

    Permalink
  27. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped