You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){
list := [[1,2],[3,4]]
x := [1,0]println(list[x])// Prints `3`.}
This can be used to easier work with N-dimensional arrays, discrete mathematics and group theory:
fnmain(){
list := [[1,2],[3,4]]// Transpose map.
x := [[[0,0],[1,0]],[[0,1],[1,1]]]
y := sift i, j {list[x[i][j]]}println(list)
println(y)// Prove that the transpose of transpose equals identity matrix.
x2 := sift i, j {x[x[i][j]]}
id := sift i 2, j 2{clone([i, j])}println(x2 == id)// Prints `true`.}
It also makes secrets easier to use:
fnmain(){
list := [[1,2],[3,5]]
list[where(max i,j{list[i][j]})] /= 2println(list)// Prints `[[1, 2], [3, 2.5]]`.}
This is designed for:
Easier N-dimensional programming
Easier use of secrets
The text was updated successfully, but these errors were encountered:
Dyon supports array of indices lookup.
This can be used to easier work with N-dimensional arrays, discrete mathematics and group theory:
It also makes secrets easier to use:
This is designed for:
The text was updated successfully, but these errors were encountered: