Open hanscau opened 6 months ago
When a built-function is called with more arguments than it requires, it ignores it.
pair(1, 2, 3, 4, 5) will result in [1, 2] head(list(1), list(2), list(3)) will return 1 is_boolean(1, 3, "string", false) will return false
pair(1, 2, 3, 4, 5)
[1, 2]
head(list(1), list(2), list(3))
1
is_boolean(1, 3, "string", false)
false
It should throw an "Expected x arguments, but got y." error instead
Expected behaviour:
When a built-function is called with more arguments than it requires, it ignores it.
pair(1, 2, 3, 4, 5)
will result in[1, 2]
head(list(1), list(2), list(3))
will return1
is_boolean(1, 3, "string", false)
will returnfalse
It should throw an "Expected x arguments, but got y." error instead
Expected behaviour: