Add "arity" getter to Fn.

This commit is contained in:
Bob Nystrom
2015-01-23 20:33:05 -08:00
parent c3a858a2c7
commit efd161cea2
7 changed files with 46 additions and 28 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ Here we're passing a function to `greet` that takes two parameters, `first` and
}
}
It's an error to call a function with fewer or more arguments than its
parameter list expects.
It's an error to call a function with fewer arguments than its parameter list
expects. If you pass too *many* arguments, the extras are ignored.
## Returning values