axle
package axle
- Alphabetic
- By Inheritance
- axle
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- case class Combinations[E](pool: IndexedSeq[E], r: Int)(implicit evidence$1: ClassTag[E]) extends Iterable[IndexedSeq[E]] with Product with Serializable
- case class CombinationsFast[E](pool: IndexedSeq[E], r: Int) extends Iterable[IndexedSeq[E]] with Product with Serializable
- case class CrossProduct[E](collections: IndexedSeq[IndexedSeq[E]]) extends Iterable[List[E]] with Product with Serializable
- class DirectedSparseGraphEdges[E] extends AnyRef
- class DirectedSparseGraphProjector[V, E] extends AnyRef
- class DirectedSparseGraphVertices[V] extends AnyRef
- case class EnrichedArray[T](arr: Array[T])(implicit evidence$1: ClassTag[T]) extends Product with Serializable
- case class EnrichedByteArray(barr: Array[Byte]) extends Product with Serializable
- case class EnrichedIndexedSeq[T](is: IndexedSeq[T]) extends Product with Serializable
- case class EnrichedInt(n: Int) extends Product with Serializable
- case class EnrichedIterable[T](ita: Iterable[T]) extends Product with Serializable
- class EnrichedIterator[T] extends AnyRef
- case class EnrichedMutableBuffer[T](buffer: Buffer[T]) extends Product with Serializable
- case class IndexedCrossProduct[E](lists: Seq[IndexedSeq[E]]) extends Iterable[Seq[E]] with Product with Serializable
- case class IndexedPowerSet[E](all: IndexedSeq[E]) extends Iterable[Set[E]] with Product with Serializable
A ℘ (IndexedPowerSet) constructed with a collection with elements of type E can construct an Iterator which enumerates all possible subsets (of type Collection<E>) of the collection used to construct the PowerSet.
- case class Permutations[E](pool: IndexedSeq[E], r: Int)(implicit evidence$1: ClassTag[E]) extends Iterable[IndexedSeq[E]] with Product with Serializable
Based on Python's itertools.permutations function
Based on Python's itertools.permutations function
http://docs.python.org/library/itertools.html#itertools.permutations
Permutations("ABCD".toIndexedSeq, 2) Permutations(0 until 3)
- case class PermutationsFast[E](pool: IndexedSeq[E], r: Int) extends Iterable[IndexedSeq[E]] with Product with Serializable
- class UndirectedSparseGraphEdges[E] extends AnyRef
- class UndirectedSparseGraphProjector[V, E] extends AnyRef
- class UndirectedSparseGraphVertices[V] extends AnyRef
Value Members
- def applyForever[N](f: (N) => N, x0: N): Iterator[N]
- def applyK[N](f: (N) => N, x0: N, k: Int): N
- def dummy[T]: T
dummy is not to be used widely, but is used for for scanLeft, where it's often desirable to provide a throw-away value as the first argument without using an Option type for an already complicated method signature.
dummy is not to be used widely, but is used for for scanLeft, where it's often desirable to provide a throw-away value as the first argument without using an Option type for an already complicated method signature. A better work-around would be an alternate version of scanLeft that had this behavior built in.
Something like this:
def scanLeftDropFirst[A, Repr, B, C, That]( tl: scala.collection.TraversableLike[A, Repr])(z: C)(op: ((B, C), A) ⇒ (B, C))( implicit bf: scala.collection.generic.CanBuildFrom[Repr, (B, C), That]) = tl.scanLeft((axle.dummy[B], z))(op) // Caller should .drop(1). TODO do that here
- implicit def enrichArray[T](arr: Array[T])(implicit arg0: ClassTag[T]): EnrichedArray[T]
- implicit def enrichByteArray(barr: Array[Byte]): EnrichedByteArray
- implicit def enrichIndexedSeq[T](is: IndexedSeq[T]): EnrichedIndexedSeq[T]
- implicit def enrichInt(n: Int): EnrichedInt
- implicit def enrichIterable[T](ita: Iterable[T]): EnrichedIterable[T]
- implicit def enrichIterator[T](it: Iterator[T]): EnrichedIterator[T]
- implicit def enrichMutableBuffer[T](buffer: Buffer[T]): EnrichedMutableBuffer[T]
- implicit def eqIterable[T](implicit eqT: Eq[T]): Eq[Iterable[T]]
- implicit def eqSeq[T](implicit eqT: Eq[T]): Eq[Seq[T]]
- implicit val eqSymbol: Eq[Symbol]
- implicit def eqTreeMap[K, V](implicit eqK: Eq[K], eqV: Eq[V]): Eq[TreeMap[K, V]]
- def filterOut[T](stream: LazyList[T], toRemove: LazyList[T])(implicit orderT: Order[T]): LazyList[T]
- def gaps[T](xs: Seq[T])(implicit ringT: Ring[T]): Seq[(T, T)]
gaps
gaps
assumes that the input xs are already sorted
- def id[A](x: A): A
- def ignore[T]: (T) => Unit
- def intersperse[T](d: T)(l: List[T]): List[T]
- def lazyListsFrom[N](n: N)(implicit orderN: Order[N], ringN: Ring[N]): LazyList[N]
- def mergeStreams[T](streams: Seq[LazyList[T]])(implicit orderT: Order[T]): LazyList[T]
mergeStreams takes streams that are ordered w.r.t.
mergeStreams takes streams that are ordered w.r.t. Order[T]
- def orbit[N](f: (N) => N, x0: N, close: (N) => (N) => Boolean): List[N]
- def print[T](t: T)(implicit arg0: Show[T]): Unit
- def replicate[T](n: Int)(v: T): List[T]
- def reverse[T](l: List[T]): List[T]
- def runs[T](xs: Seq[T])(implicit ringT: Ring[T], orderT: Order[T]): Seq[(T, T)]
runs
runs
assumes xs is already sorted
- def runs[T](xs: Seq[T], breaks: Set[T]): Seq[(T, T)]
- implicit val showChar: Show[Char]
- def showDoubleWithPrecision(p: Int = 6): Show[Double]
- implicit val showNode: Show[Node]
- implicit val showRational: Show[Rational]
- implicit def showSymbol: Show[Symbol]
- def shuffle[T](xs: List[T])(gen: Generator): List[T]
shuffle
- def trace[N](f: (N) => N, x0: N): Iterator[(N, Set[N])]
- val ∀: forall.type
- val ∃: thereexists.type
- object IO
- object forall
- object thereexists
- object ℘