aboutsummaryrefslogtreecommitdiff
path: root/evaluator/builtins.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-03-25 10:15:58 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-03-25 10:15:58 +0200
commit99d08ce35ede2b5c75266240f20c4554060ddce0 (patch)
treea0ee1cc221cec03968046d4baade84666b9ee4ae /evaluator/builtins.go
parenta6e158b26593fd77972bf8ceca7655f6b332596c (diff)
stringer
Diffstat (limited to 'evaluator/builtins.go')
-rw-r--r--evaluator/builtins.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/evaluator/builtins.go b/evaluator/builtins.go
index 711c3c9..38acaea 100644
--- a/evaluator/builtins.go
+++ b/evaluator/builtins.go
@@ -40,7 +40,7 @@ var builtins = map[string]*object.Builtin{
return newError("wrong number of arguments. got=%d, want=1",
len(args))
}
- if args[0].Type() != object.ARRAY_OBJ {
+ if args[0].Type() != object.ARRAY {
return newError("argument to `first` must be ARRAY, got %s",
args[0].Type())
}
@@ -59,7 +59,7 @@ var builtins = map[string]*object.Builtin{
return newError("wrong number of arguments. got=%d, want=1",
len(args))
}
- if args[0].Type() != object.ARRAY_OBJ {
+ if args[0].Type() != object.ARRAY {
return newError("argument to `last` must be ARRAY, got %s",
args[0].Type())
}
@@ -79,7 +79,7 @@ var builtins = map[string]*object.Builtin{
return newError("wrong number of arguments. got=%d, want=1",
len(args))
}
- if args[0].Type() != object.ARRAY_OBJ {
+ if args[0].Type() != object.ARRAY {
return newError("argument to `rest` must be ARRAY, got %s",
args[0].Type())
}
@@ -101,7 +101,7 @@ var builtins = map[string]*object.Builtin{
return newError("wrong number of arguments. got=%d, want=2",
len(args))
}
- if args[0].Type() != object.ARRAY_OBJ {
+ if args[0].Type() != object.ARRAY {
return newError("argument to `push` must be ARRAY, got %s",
args[0].Type())
}