Value

com.phasmidsoftware.lascala.values.Value
See theValue companion trait
object Value

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Value.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def sequence(ws: Seq[Any])(implicit conv: ValueMaker): Seq[Value]

Transform a sequence of Anys into a sequence of corresponding Values

Transform a sequence of Anys into a sequence of corresponding Values

Value parameters

ws

a sequence of Anys

Attributes

Returns

a sequence of Values

def sequence[K](kWm: Map[K, Any])(implicit conv: ValueMaker): Map[K, Value]

Transform a Map of Strings into a Map of corresponding Values.

Transform a Map of Strings into a Map of corresponding Values.

XXX note that there is no native Value which is a Map.

Type parameters

K

the key type

Value parameters

kWm

a map of Strings

Attributes

Returns

a map of Values

def trySequence(ws: Seq[Any])(implicit conv: ValueMaker): Try[Seq[Value]]

Transform a sequence of Anys into a Sequence of corresponding Values

Transform a sequence of Anys into a Sequence of corresponding Values

Value parameters

ws

a sequence of Anys

Attributes

Returns

a sequence of Values

def trySequence[K](kWm: Map[K, Any])(implicit conv: ValueMaker): Try[Map[K, Value]]

Transform a Map of K,Any into a Map of corresponding K,Value

Transform a Map of K,Any into a Map of corresponding K,Value

Type parameters

K

the key type

Value parameters

kWm

a map of K,Any

Attributes

Returns

a map of Values

def tryValue(x: Any): Try[Value]

Method to convert any of several types of object into a Value. XXX Surely the implicits mechanism should be doing this for us!

Method to convert any of several types of object into a Value. XXX Surely the implicits mechanism should be doing this for us!

Value parameters

x

an Any

Attributes

Returns

a Try[Value] where the value is the result of applying one of the several apply methods in this Value object.

Implicits

Implicits

implicit def apply(x: Boolean): Value
implicit def apply(x: Int): Value
implicit def apply(x: Double): Value
implicit def apply(x: LongRational): Value
implicit def apply(x: String): Value
implicit def apply(x: LocalDate): Value
implicit def apply(xs: Seq[Any]): Value