Hey @Adám! Would you mind explaining to me how does the code you wrote for the QuadR question I asked yesterday works? I know \d+. is the regex expression, but what is ¯1((⍎↓)⍴↑)⍵M doing?
@Adám So it's dropping the last part of the match to get the numeric value and transforming it to a number n, then it reshapes the last part of the match, which is the symbol, to repeat it n times, correct?
@Adám could you give this answer a quick check? I'm just wondering if I got lucky using the logical NAND operator or if that's what it's supposed to do
@J.Sallé Yes, it is a tradfn. The ∇ certainly don't count, as they are not part of the function at all, but rather escape characters for TIO's interface. I don't count the function header if the function takes care of I/O (like this one does), as the header doesn't do anything, and could be omitted if the code was instead piped into APL (the Input field in TIO).
@J.Sallé :-D You have to remember that ∘ is asymmetric. Iverson originally gave it the symbol ⍩ and called it "with" which maybe makes more sense: (times with roll) with 0