Splitter

org.saddle.index.Splitter
See theSplitter companion object
trait Splitter[I, OL, OR]

A Splitter operates on an input index whose elements have arity N, and yields the following pair of output indexes: the left has elements whose arity is N-1, where each element has the first N-1 constituents of the original tuple; and the right is an index whose elements were those in the Nth position of the original tuple.

For example,

 Index[(Char, Int)](('a', 1), ('a', 2), ('b', 1), ('b', 2)).split

yields

 (Index[Char]('a', 'a', 'b', 'b'), Index[Int](1, 2, 1, 2))

Type parameters

I

Input index whose elements have arity > 1

OL

Left output index whose elements have arity >= 1

OR

Right output index whose elements have arity 1

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply(i: Index[I]): (Index[OL], Index[OR])