$# : The ::SHE+ILA:: shape changer

Elegant Woman in Purple Dress with Geometric Background
56
2
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • Prompt
    Read prompt
  • DDG Model
    DaVinci2
  • Access
    Public
  • Created
    1w ago
  • Try

More about $# : The ::SHE+ILA:: shape changer

For example A <:: (3,3) $# $I 9 (or more readably (3, 3) $# (1_9); ) The $# or Reshape operator is very similar to the APL ® (rho) operator, in that it builds a multi-dimensional array whose shape is given in the left operand (here 3-by-3, like a noughts and crosses board) and initialises it with the values in the right-hand operand (here the numbers 1 through 9, specified as the range 1_9). Thus the result is:
1 2 3
4 5 6
7 8 9
This is useful for chess boards, Star Trek galaxy maps, and general matrices.

Comments


Loading Dream Comments...

Discover more dreams from this artist