J6/Grid/Verb

From J Wiki
Jump to: navigation, search
J6/Grid

Verb grid displays its right argument in a grid. For example:

load 'grid'
grid i.10 20
grid USERFOLDERS_j_

The left argument is optional, and if given has two forms:

  • a boxed 2-column matrix of (name, value) pairs that define grid options
  • otherwise, the specification of axis labels, as for the HDRCOL/ROW options.

If not given, default values are used for all grid globals, except that cell editing is disabled, and cell font and alignment are based on cell contents, see verb gridpdefaults_jzgrid_.

For example:

(0;<;:'name path ifsub') grid USERFOLDERS_j_

Gridfld.png