::SHE+ILA::'s Indexing Of Operators [$52]

Lavender-haired woman in elegant purple gown indoors
21
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • Prompt
    Read prompt
  • DDG Model
    Realismo
  • Access
    Public
  • Created
    2h ago
  • Try

More about ::SHE+ILA::'s Indexing Of Operators [$52]

As you know, we can index (i.e. subscript) a data item, such as
("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") [5]; // This returns "Thursday",
since ::SHE+ILA:: always uses Origin 1 subscripting (slot 0 is reserved for the symbol table);
but the action of certain operators can also be modified by indexing them, for example Insert and Reverse :
wooity <<[3] "hiya"; // This inserts the string "hiya" into the third cell of Buf "wooity", shifting all the rest along one position;
Test <:: ((1,2,3),(4,5,6),(7.8,9)); // Make a 2dimensional matrix;
ttyout ($V Test); // Prints ((3,2,1),(6,5,4),(9,8,7));
ttyout ($V[1] Test); // Prints ((7,8,9),(4,5,6),(1,2,3));
There are other operators that can be modified in this way, for example Extract (a =>>[N] b), and Rotate (a $8[N] b).

Comments


Loading Dream Comments...

Discover more dreams from this artist