Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Apply a function to elements at certain positions and another function to the rest of the elements
ResourceFunction["SetComplementMap"][f1,f2,list,pos] applies f1 to elements in list at positions pos and applies f2 to the rest of the elements. |
Color numbers at particular positions red and color the rest blue:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
Rotate strings in a list and style them red while coloring the rest of the elements blue:
| In[3]:= | ![]() |
| Out[5]= |
Modify words in text in two ways:
| In[6]:= | ![]() |
| Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License