Array notation

Array Notation is a notation for evaluating 1-dimensional arrays created by Jonathan Bowers. Later, he decided to create a notation that evaluated multidimensional arrays (Extended Array Notation,) and finally rolled both into one, creating BEAF.

Rules

 * 1) $$\{a\} = a$$ and $$\{a,b\} = a^b$$. The latter was originally $$a+b$$.
 * 2) $$\{a,b,c,\ldots,n,1\} = \{a,b,c,\ldots,n\}$$
 * 3) $$\{a,1,b,c,\ldots,n\} = a\}$$
 * 4) $$\{a,b,1,\ldots,1,c,d,\ldots,n\} = \{a,a,a,\ldots,\{a,b-1,1,\ldots,1,c,d,\ldots,n\},c-1,d,\ldots,n\}$$
 * 5) If rules 1 to 4 do not apply, $$\{a,b,c,\ldots,n\} = \{a,\{a,b-1,c,d,\ldots,n\},c-1,d,\ldots,n\}$$