Chain

data class Chain<T, S>(val terms: List<T>, val separators: List<S>)

A parsed chain of elements, and the separators separating each element of the chain.

Elements term[0] and term[1] are separated by separators[0], term[1] and term[2] are separated by separators[1], etc. It follows that separators will always have one element more than terms, unless the chain is empty, in which case both will be empty.

Constructors

Link copied to clipboard
fun <T, S> Chain(terms: List<T>, separators: List<S>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val separators: List<S>
Link copied to clipboard
val terms: List<T>