class Ven::Suite::MVector
- Ven::Suite::MVector
- Ven::Suite::MClass
- Reference
- Object
Overview
Ven's vector data type.
Defined in:
ven/suite/model.crConstructors
- .new(value : Array(MClass) | Array(MStruct))
- .new(value : Array(Ven::Suite::MClass | Ven::Suite::MStruct) = Models.new)
Instance Method Summary
-
#callable?
Returns whether this model is callable.
- #eqv?(other : Vec)
-
#to_num
Returns the length of this vector.
- #to_s(io)
-
#to_vec
Converts (casts) this model into a
Vec
. -
#true?
Returns whether this model is semantically true.
- #value : Array(Ven::Suite::MClass | Ven::Suite::MStruct)
- #value=(value : Array(Ven::Suite::MClass | Ven::Suite::MStruct))
Instance methods inherited from class Ven::Suite::MClass
callable? : Bool
callable?,
eqv?(other : Model) : Bool
eqv?,
field(name : String) : Model | Nil
field,
is_bool_false? : Bool
is_bool_false?,
of?(other : MType) : Boolof?(other) of?, to_bool(inverse = false) : MBool to_bool, to_num : Num to_num, to_str : Str to_str, to_vec : Vec to_vec, true? : Bool true?, truth=(truth : Bool) truth=, truth? truth?
Constructor Detail
Instance Method Detail
def callable?
#
Description copied from class Ven::Suite::MClass
Returns whether this model is callable.
def to_vec
#
Description copied from class Ven::Suite::MClass
Converts (casts) this model into a Vec
.
def true?
#
Description copied from class Ven::Suite::MClass
Returns whether this model is semantically true.