|
|
|
|
|
by dvt
2021 days ago
|
|
This is more of a λ-Calculus question (unrelated to combinators, really). But S takes 3, K takes 2, and I takes 1. This isn't strictly correct because S/K/I isn't a function, but rather a chain of lambdas with no free variables (and we get the number of "parameters the function takes" by counting the lambda symbols). See §1 in [1]. In your specific case, S 11 12 = 12
K 11 12 13 = 11 13 (12 13)
I 11 = 11
Keep in mind that the literals "11," "12," and "13" in λ-Calculus aren't numbers.[1] https://personal.utdallas.edu/~gupta/courses/apl/lambda.pdf |
|
S takes 2 values, and returns 1
K takes 3 values, and returns the 1st, 3rd, and (2nd applied to 3rd)
I returns the value it is given (like a no-op)