Functions
Given a Value
assumed to be a Value::List()
, grab the item at index
,
assumed to be a Value::Float()
, and return its inner f32. Err if any part
of this fails.
Given a Value
assumed to be a Value::List()
, grab the item at index
,
assumed to be a Value::Int()
, and return its inner i32. Err if any part
of this fails.
Given a Value
assumed to be a Value::List()
, grab the item at index
,
assumed to be a Value::List()
or a Value::NIL
, erring if that isn’t
the case.
Given a Value
assumed to be a Value::List()
, grab the item at index
and err if there isn’t one.
Given a Value
assumed to be a Value::List()
, grab the item at index
,
assumed to be a Value::String()
, and return a reference to its inner
String. Err if any part of this fails.