RepeatStep
flatgraph.traversal.RepeatStep
object RepeatStep
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RepeatStep.type
Members list
Type members
Classlikes
class FifoWorklist[A] extends Worklist[A]
queue based worklist for RepeatBehaviour.SearchAlgorithm.BreadthFirst
class LifoWorklist[A] extends Worklist[A]
stack based worklist for RepeatBehaviour.SearchAlgorithm.DepthFirst
stores work still to do. depending on the underlying collection type, the behaviour of the repeat step changes
stores work still to do. depending on the underlying collection type, the behaviour of the repeat step changes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class FifoWorklist[A]class LifoWorklist[A]
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
def apply[A](repeatTraversal: (Iterator[A]) => Iterator[A], behaviour: RepeatBehaviour[A]): A => Iterator[A]
Attributes
- See also
-
language.repeat for a detailed overview Implementation note: using recursion results in nicer code, but uses the JVM stack, which only has enough space for ~10k steps. So instead, this uses a programmatic Stack which is semantically identical. The RepeatTraversalTests cover this case.
In this article