by farginay · 12y ago · 0 comments
Each operator defines its extent. The count operator '#' in J works at the top level. If you have a 3 x 4 matrix, it returns 3. Take '{.' works the same way. If you have a 3 x 4 matrix and you take 1, you will get a 4 element vector which is the first row of the matrix.
Something like decrement '<:' applies to all of the elements in a matrix regardless of the dimensionality.
This isn't like OO where collections have operations attached to them.
No comments yet.