Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent an expression in terms of the S and K combinators
ResourceFunction["SKCombinatorCompile"][expr,vars] give a representation of expr with respect to vars in terms of the S and K combinators. |
| "SKGlyphs" | {CombinatorS,CombinatorK} | symbols used to specify combinators |
Represent an expression in terms of the S and K combinators:
| In[1]:= |
|
| Out[1]= |
|
Recover the original expression by applying the combinator to variables and transforming:
| In[2]:= |
|
| Out[2]= |
|
Convert an expression with one variable:
| In[3]:= |
|
| Out[3]= |
|
Convert an expression with multiple variables:
| In[4]:= |
|
| Out[4]= |
|
Convert an expression where the variables specified are absent in the expression:
| In[5]:= |
|
| Out[5]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License