Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert an integer array pattern into a size, index and base
ResourceFunction["ArrayPatternToIndex"][array] returns the size, integer-index representation and base of array. |
Convert a binary array into size, index and base:
In[1]:= |
Out[1]= |
Convert a ternary array into size, index and base:
In[2]:= |
Out[2]= |
The resource function ArrayPatternFromIndex is the inverse of ArrayPatternToIndex:
In[3]:= |
Out[3]= |
In[4]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License