FlowGroup

object FlowGroup
class Object
trait Matchable
class Any

Value members

Concrete methods

def reassemble[F, R](input: Iterable[String], startTest: String => Option[F], build: (F, List[String]) => R): Iterable[R]

The generic function that groups strings into larger of something else

The generic function that groups strings into larger of something else

Value Params
build

function that build a new output item made of the start entry given by "startTest" and the following strings

input

the flow of strings to process

startTest

function that returns something if and only if the given string marks the beginning of a string block

Returns

the new flow of something else

def reassembleit[F, R](input: Iterator[String], startTest: String => Option[F], build: (F, List[String]) => R): Iterator[R]
def restrings(in: Iterable[String], startRE: Regex, mks: String): Iterable[String]

collection of strings into a shorter one,

collection of strings into a shorter one,

Value Params
in

the flow of strings to process

mks

string separator to use to groups strings together

startRE

a regular expression is used as the separator

Returns

the new flow of stream

def restrings(in: Iterable[String], startTest: String => Boolean, mks: String): Iterable[String]

collection of strings into a shorter one

collection of strings into a shorter one

Value Params
in

the flow of strings to process

mks

string separator to use to groups strings together

startTest

test function to know if the given string marks the beginning of a new string block

Returns

the new flow of stream

def restringsit(in: Iterator[String], startRE: Regex, mks: String): Iterator[String]
def restringsit(in: Iterator[String], startTest: String => Boolean, mks: String): Iterator[String]