Not quite the same though...Bubbler's version also works on arrays of integers, i.e. 1 10 2 10 3 ≡ 10{⊃(⊣,⍺,⊢)/⍵}⍳3, whereas your train A doesn't -- but the APLcart one does too, so that's probably most preferable
@Adám I'm not finding it that easy to write the generic behaviour I want, but I also just started thinking about it, so hopefully I'll come up with something.
@Adám That's replacing with a constant value... but that might be a nice head start for me
I don't want to say exactly what I want because I want to get there by myself :P But when I find some solution I'll share it here so people can improve on it or suggest alternatives
@Adám what does the initial bit of the dfn do? from what I can tell it just replicates 'x' as many times as the window has major cells, no? I think the problem is I don't understand what ⍨ is doing in there
∘ The specs are too complicated ("with at most one strictly positive element, and at most one strictly negative element"). ∘ Just do it in two operations.
The stencil enhancement is a major feature, and we're not even considering adding any of those until 18.0 has been sorted.
Exactly. And the disaster made it abundantly clear to management that our practices weren't good. So now we are prioritising quality over adding new features. We're also focusing on security aspects of our code.
I'm myself guilty of using bracket indexing to avoid parens in things like 'abc',var[i],'def', and to select multiple cells, but I do think there are only two really justified use cases of bracket axis left: making ⊂ be first axis oriented, and merging axes with monadic ,[ax]
@Adám f would probably conflict some. And I don't think losing readability for visual similarity is at all worth it (I don't even think a⍀b is common enough to warrant a character in a library)
@Adám Hi, thank you for the shout-out. I'm at the level of discovering ⍳10 :) and looking for a beginner's tutorial. My interest is purely personal, not professional. I have some experience in the Wolfram language. Your recommendation?
@MarekKowalczyk I recommend either asking me for a personalised intro, or choose anything from the section of apl.wiki/Learning_resources that fits you ("non-programmer" or "programmer unfamiliar with APL").
@dzaima wait, no, BQN doesn't ever call functions that could possibly have side-effects to compute fills. If it really needs fills, it may check if the function is pure, and evaluate then, otherwise it just errors
the BQN spec for fills is "here's a list of cases where fills must be computed (which include basic arith and structural builtins, and probably some others), and you can do whatever you want in the rest of the cases"