Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a list of all combinators with n symbols
ResourceFunction["EnumerateCombinators"][n] generates a list of all combinators with n symbols. | |
ResourceFunction["EnumerateCombinators"][n,syms] uses symbols from the list syms. | |
ResourceFunction["EnumerateCombinators"][n,syms,fun] uses the function fun to combine the symbols. |
Generate all combinators with three symbols:
In[1]:= |
|
Out[1]= |
|
Use default symbols to represent the combinators:
In[2]:= |
|
Out[2]= |
|
Use s and k as the symbols:
In[3]:= |
|
Out[3]= |
|
Use Application to combine the symbols:
In[4]:= |
|
Out[4]= |
|
Specify both the combinator symbols and the operator:
In[5]:= |
|
Out[5]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License