gleam_value

Types

pub type GleamValue {
  IntValue(value: Int)
  FloatValue(value: Float)
  StringValue(value: String)
  MapValue(value: map.Map(GleamValue, GleamValue))
  ObjectValue(value: GloomObject)
}

Constructors

  • IntValue(value: Int)
  • FloatValue(value: Float)
  • StringValue(value: String)
  • MapValue(value: map.Map(GleamValue, GleamValue))
  • ObjectValue(value: GloomObject)
pub type GloomObject {
  GloomObject(
    name: String,
    datatype: GloomType,
    affinity: GloomAffinity,
    properties: GleamValue,
  )
}

Constructors

  • GloomObject(
      name: String,
      datatype: GloomType,
      affinity: GloomAffinity,
      properties: GleamValue,
    )

Functions

pub fn empty_map() -> GleamValue
pub fn empty_number() -> GleamValue
pub fn empty_string() -> GleamValue
pub fn empty_value(datatype: GloomType) -> GleamValue
pub fn ensure_map_value(value: GleamValue) -> GleamValue
pub fn ensure_object_value(value: GleamValue) -> GleamValue
pub fn everything(datatype: GloomType) -> GloomObject
pub fn everything_value(value: GleamValue) -> GloomObject
pub fn from_float(float: Float) -> GleamValue
pub fn from_int(int: Int) -> GleamValue
pub fn from_list(list: List(#(GleamValue, GleamValue))) -> GleamValue
pub fn from_string(string: String) -> GleamValue
pub fn get(maybe_map: GleamValue, key: GleamValue) -> GleamValue
pub fn get_property(object: GloomObject, key: GleamValue) -> GloomObject
pub fn gloom_type(gleam_value: GleamValue) -> GloomType
pub fn insert(maybe_map: GleamValue, key: GleamValue, value: GleamValue) -> GleamValue
pub fn insert_value(hopefully_map: GleamValue, value: GleamValue) -> GleamValue
pub fn length(value: GleamValue) -> Int
pub fn nothing(datatype: GloomType) -> GloomObject
pub fn nothing_value(value: GleamValue) -> GloomObject
pub fn set_property(object: GloomObject, key: GleamValue, value: GleamValue) -> GloomObject
pub fn something(datatype: GloomType) -> GloomObject
pub fn something_value(value: GleamValue) -> GloomObject
Search Document