I wish the J programming language had a form set up as nice as this one. I am trying to learn how to write code in J. Try googling for help. Almost nothing but Java comes up. This line of code
M[j] = y
Is hard enough to convert to J. This line of code:
y = M[j]
may be impossible.