xpqz / learnapl

Introduction to Dyalog APL: https://xpqz.github.io/learnapl
Other
126 stars 11 forks source link

“Glyphiary” revision #5

Closed rodrigogiraoserrao closed 3 years ago

rodrigogiraoserrao commented 3 years ago

Revision

Here I include all of the things that, to the best of my knowledge and experience, should be changed/corrected.

┌→────────────────────┐ │ ┌→────┐ │ │ 1 2 3 4 5 6 │hello│ │ │ └─────┘ │ └∊────────────────────┘ ┌→────────────────┐ │1 2 3 4 5 6 hello│ └+────────────────┘

and then say “The distinction above is perhaps not obvious - and without ]box on they would look identical. Catenate ravels its right argument.”. I don't think I got what you were _trying_ to say, but the sentence is wrong – catenate does _not_ ravel its right argument! (If it did, I wouldn't be able to catenate two matrices, for e.g....)
These two cases are different because, in the first case, `5 6 'hello'` is a nested array, whereas `'hello'` is just a regular vector:
```APL
      5 6'hello'
┌─┬─┬─────┐
│5│6│hello│
└─┴─┴─────┘
      'hello'
hello

To consider

In here I include things that, from my point of view, would be nice additions/modifications. Tick them as you ponder on them, feel free to disregard.

xpqz commented 3 years ago

Fixed in 42494e7