it wouldn't really make sense for 1 to be actually [1] under the hood (that would cause a lot of confusion and be annoying to work with), but it doesn't make any sense for 1 2 3 to be just a number so the only interpretation is [1, 2, 3]
yep, that's pretty much how I understand it (probably worth confirming from someone who knows APL though - I can hardly say i understand any more than vaguely its train structure :P)
Got thrown off by the simple average function {(+/⍵)÷(⍴⍵)} Was messing around with it and gave it a single number (which should avg to itself) gave no output
@hyper-neutrino It's a good intuitive explanation. A technical explanation is that multiple "things" (single numbers or arrays) put together get "stranded", which means they form a new vector containing them.
that's... a bit confusing. anyway, IIRC i was told there's a difference between a matrix and just sticking vectors in a vector, so now's a good time to ask - what is the difference exactly?
https://youtu.be/z8MVKianh54 After watching this presentation by Aaron Hsu, and as a programming language hobbyists, now I’m very sold that APL and family is the true functional programming language lol
@WongJiaHau Just don't expect functions to take functions as arguments (not that it is actually often needed), because only K and BQN can do that. See discussion of the subject here.