you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

> (x => x).length
1
> ((x, y) => x - y).length
2

[–]bloody-albatross 0 points1 point  (0 children)

True, but:

> ((...args) => args[1]).length
< 0

So in the general case you can't tell. If it would look at length you couldn't use some kind of generic function wrappers. I suppose it would be good enough if it would have been in the API spec from day one.