OneOrMore

scalax.collection.OneOrMore
See theOneOrMore companion class
object OneOrMore

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
OneOrMore.type

Members list

Type members

Inherited classlikes

object Seq

Optional extractor to get a Seq extracted.

Optional extractor to get a Seq extracted.

Attributes

Inherited from:
NonEmptyFactory (hidden)
Supertypes
class Object
trait Matchable
class Any

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](head: A, more: A*): OneOrMore[A]

Factory to pass elements individually.

Factory to pass elements individually.

Attributes

def from[A](source: IterableOnce[A]): Option[OneOrMore[A]]

Some[OneOrMore] populated with the elements of source if it contains at least one element, otherwise None.

Some[OneOrMore] populated with the elements of source if it contains at least one element, otherwise None.

Attributes

def fromUnsafe[A](source: IterableOnce[A]): OneOrMore[A]

Creates a OneOrMore[A] populated with the elements of source in a non-safe way.

Creates a OneOrMore[A] populated with the elements of source in a non-safe way.

Attributes

Throws
IllegalArgumentException

if source is empty.

def more[A](head: A, _2: A, more: A*): OneOrMore[A]

Factory to create a OneOrMore containing at leas the two elements head and _2.

Factory to create a OneOrMore containing at leas the two elements head and _2.

Attributes

def one[A](head: A): OneOrMore[A]

Factory to create a OneOrMore containing the single element head.

Factory to create a OneOrMore containing the single element head.

Attributes