Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Replace elements with their position of first appearance when flattened
ResourceFunction["PositionsByFirstAppearance"][list] replaces elements of list by their position of first appearence in the flattened list. |
Put digits of π into standard order:
In[1]:= | ![]() |
Out[1]= | ![]() |
Put edges of the Petersen graph into standard order:
In[2]:= | ![]() |
Out[2]= | ![]() |
Append {1,2,3} to permutations of {1,2,3} and put into standard order:
In[3]:= | ![]() |
Out[3]= | ![]() |
Put characters of text into standard order:
In[4]:= | ![]() |
Out[4]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License