array builtins
This commit is contained in:
@@ -24,3 +24,9 @@ func (i *Integer) Equal(other Object) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
func (i *Integer) Less(other Object) bool {
|
||||
if obj, ok := other.(*Integer); ok {
|
||||
return i.Value < obj.Value
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user