Closed STRd6 closed 5 months ago
Very cool! Looking at the last example, I wonder if f ., .
should in fact mean (a, b) => f(a, b)
instead of (a) => f(a, a)
. I could be wrong, but I feel like the multiple arguments is a more common/useful interpretation of a partial. Originally I had thought we could use .0
and .1
(by analogy to $0
and $1
) but I realize those already have a meaning (number literal).
.
placeholder for partial function application.Works for the common cases but
...
is a bit strange so I'll save that for a future iteration.