class

Lit::LitMap

Inherits Lit::Instance / Reference / Object

Constants

TYPE = Type.new("Map", {} of String => Function)

Constructors

new(elements : Hash(Bool | Float64 | Int64 | ::Lit::Callable | ::Lit::Instance | ::Lit::Uninitialized | String | Nil, Bool | Float64 | Int64 | ::Lit::Callable | ::Lit::Instance | ::Lit::Uninitialized | String | Nil) = {} of Value => Value)
Source

Instance methods

elements
Source
get(name : Token) : Value
Source
set(name : Token, value : Value)
Source