by nsytk · 4y ago · 0 comments
I do not understand the "instead of" in the cited part and it makes me somewhat skeptical (so does the "Py" in the name).
f a b
f has to work as a function of two arguments; that it is also formally interpretable, but not necessarily useful, as a function of one argument is only a nice bonus.https://en.wikipedia.org/wiki/Argument_of_a_function
"For example, the binary function f(x, y) = x + y has two arguments, x and y, in an ordered pair (x, y)."
So, function application to an ordered pair, i.e., a tuple, does not use double parentheses. Also, of course, currying in Python is atrocious.