k-cell

From J Wiki
< Help(Redirected from Help/Primer/k-cell)
Jump to navigation Jump to search


<=   =>

A cell of rank k is also called a rank-k cell or k-cell. A 0-cell is an atom, a 1-cell is a list, a 2-cell is a table, and so on. If the rank of the cells of a noun is given, then the frame is whatever is left over of the shape of the noun.

Negative numbers are also used, as in _2-cell and _1-cell; the frames of such cells have length indicated by the magnitude of the numbers. You have seen _1-cells before: they are items.

  abc =. 4 3 2 $ i. 24


The noun abc can be thought of as:

  • 4 3 2 frame of 0-cells

  • 4 3 frame of 1-cells

  • 4 frame of 2-cells

  • empty frame of a 3-cell

A more general way of phrasing this is:


  • rank 3 frame of 0-cells

  • rank 2 frame of 1-cells

  • rank 1 frame of 2-cells

  • rank 0 frame of a 3-cell


<=   =>

Primer Index               Hover to reveal titles   -   Click to access   -   Current page is highlighted
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
45 46 47 48
50 51 52 53 54 55 56 57
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
97 98 99 100 101 102 103 104 105 106