Empty

halotukozak.alpaca.internal.Empty
See theEmpty companion object
trait Empty[T] extends () => T

A type class for creating empty instances of types.

This trait provides a way to create default instances of Product types (case classes) by using their default parameter values. It extends Function0 to act as a factory.

Type parameters

T

the type to create empty instances of

Attributes

Companion
object
Experimental
true
Source
Empty.scala
Graph
Supertypes
trait () => T
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function0 -> Any
Inherited from:
Function0
Source
Function0.scala

Inherited and Abstract methods

def apply(): T

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Attributes

Returns

the result of function application.

Inherited from:
Function0
Source
Function0.scala