Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the ordered tuple with the given index and length
ResourceFunction["OrderedTupleFromIndex"][index,len] returns an ordered tuple of length len with given index. |
The following ordered 3-tuple sequence can be extended to infinity:
In[1]:= |
Out[1]= |
The function can return ordered tuples of a large index:
In[2]:= |
Out[2]= |
The function can return ordered tuples of a given index for various lengths:
In[3]:= |
Out[3]= |
Here are some ordered 2-tuples with their indices to show their structure:
In[4]:= |
Out[5]= |
The ordered 2-tuple {4,4} has an index of :
In[6]:= |
Out[6]= |
Use this to recover the tuple:
In[7]:= |
Out[7]= |
The structure of ordered 3-tuples in 3D:
In[8]:= |
Out[9]= |
This work is licensed under a Creative Commons Attribution 4.0 International License