Add tons of builtin helpers and array operations.
This commit is contained in:
@@ -7,7 +7,7 @@ func Rest(args ...Object) Object {
|
||||
len(args))
|
||||
}
|
||||
if args[0].Type() != ARRAY_OBJ {
|
||||
return newError("argument to `rest` must be ARRAY, got %s",
|
||||
return newError("argument to `rest` must be array, got %s",
|
||||
args[0].Type())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user