User blog:Primussupremus/Array notation rule set.

Here is the rule set for my notation from: {a,b,c} to {a,b,c|d,k#p}

[a,1,c] = a+c [a,2,c] = a*c [a,b,c] = a{b-2}c if c > 2 [a,b,c|0] = [a,b,c] [a,b,c|d] = [a,[a,b,c|d-1],c|d-1] [a,b,c|d,0] = [a,b,c|d] [a,b,c|d,e] = [a,b,c|[a,b,c|d,e-1]]

Now on to {a,b,c|d,k#p}

[a,b,c|@,0] = [a,b,c|@] (@ is any string) [a,b,c|@,p,q] = [a,b,c|@,[a,b,c|@,p,q-1]]

Finally:

[a,b,c|d,k#p] = [a,b,c|(p d's),k]

So how do you think of that rule set.