IterableOrArray

io.scalaland.chimney.internal.compiletime.datatypes.IterableOrArrays.IterableOrArray
See theIterableOrArray companion object
abstract protected class IterableOrArray[M, A]

Something allowing us to dispatch same-looking-source-code-but-different ASTs for Iterables and Arrays.

Exists because Array is NOT Iterable, and all operations like .map, .to, etc are done through extension methods. Meanwhile, we would like to be able to convert to and from Array easily.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def iterator(m: Expr[M]): Expr[Iterator[A]]
def map[B : Type](m: Expr[M])(f: Expr[A => B]): ExistentialExpr
def to[C : Type](m: Expr[M])(factory: Expr[Factory[A, C]]): Expr[C]