@Fmbalbuena ⍳Y generates the indices of an array of shape Y so ⍳⍳3 is ⍳1 2 3 which are the indices of an array with 1 layer, two rows, and 3 columns. Not what you wanted.
@Fmbalbuena I'm not sure what you want me to explain.
@Fmbalbuena, you will learn much faster by trying to understand on your own. By asking @Adám to help you all the time, you might be giving up the opportunity to push the envelope of your own understanding.
I just got an idea: A user command ]describe which describes what you give it in human terms. E.g. 'abc' 'def' would say A vector of 2 character vectors
that would be nice. I use ⍴ and ]boxing all the time to understand the output of functions. That's what you meant to do with ]describe? For input and output?
There was a comment yesterday or so about your style guide, and whether or not there was advice for formatting multi-line dfns. I'm also curious about this, and if there's any interest in an auto-formatter for APL code (if it doesn't already exist)
I often struggle to debug expressions because I can’t see the intermediate results. If I break down the expression in chunks, sometimes the behavior changes because the context is different. Can anyone suggest how to inspect intermediate results of a long expression?
@user8544778 Sorry, I was a bit too busy to welcome you before. Welcome! Since you're new to Stack Exchange chat, I highly recommend having a look at apl.wiki/APL_Orchard#Features
Ideally, one should be able to single-step through an expression without altering the code. As cool as the ‘tc’ trick is, it feels like debugging with printf()…
APL*PLUS had a nice tracing interface where it'd highlight each primitive in turn, with separate (optional) windows displaying the (left and) right arguments of that primitive,
Instead of altering source code, I'd want something in the IDE like the toggleable stop/trace/monitor bits, but between characters, allowing me to toggle insertion of tc on and off at that interval between two adjacent characters.
If it was this summer, would it mean I couldn't enter the problem solving contest too? (Also, I'll probably be going to uni next year but if I don't would I still count as a student seeing as this is my last year of school?)
Btw, next time you want me to do work for me, say "Hi @Adám can I ask you to do [insert description of work] for me?" instead of pretending it is a challenge for me.