7 ms·
Yeah, the automatic currying looks very nice. I was wondering how that works with optional arguments or rest arguments. At first glance I didn't see anything ab
by hencq 6y ago
Yeah, the automatic currying looks very nice. I was wondering how that works with optional arguments or rest arguments. At first glance I didn't see anything about that in the tutorial. It seems to me as a layman that auto-currying can only work with fixed arity functions, but I'm curious if that's indeed the case.
Edit: I scanned the docs too quickly. It's answered there:
> Unlike many Lisps, TL functions always expect a fixed number of arguments. For example, the + function shown above expects to receive 2 arguments and if it receives too many then and error occurs: