@lirtosiast Problem is in the extension (which isn't mine) of @ which treats scalars and 1-element vectors differently. (⍉1⊖⌽`@1⍢⌽)/⌽ works fine. Compare these three.
@J.Sallé I "streamlined" pco so that all dyadic calls are scalar, while the monadic one is mixed. Compare to ? where the monadic one is scalar and the dyadic one is mixed.
Well, since you're on the subject, that's what I had yesterday: {^/(≢∪f),p=pco⍳≢p⊣p f←↓2pco⍵}. Turns out it's wrong because of an oversight, I'm gonna try to fix it then port to extended to shave some bytes off
This checks whether ⍵ is in the form $(p_x)^n, (p_{x+1})^n, (p_{x+2})^n, ...$ where every p is a consecutive prime
@J.Sallé I don't have mathjax in chat, but if I understand you right, you want to check if ∊(⌿⍨⌿⍭) (the prime factors) can be expressed as x/y↑z↓⍸1⍭⍳⍵ Is this right?
@Adám maybe? I don't think I understand that last piece of code. The challenge is to check whether the prime factors are consecutive and their exponents are the same
@voidhawk No, by definition, it uses Unicode. But I always replace "bytes" with [bytes](https://codegolf.meta.stackexchange.com/a/9429/43319 "When can APL characters be counted as 1 byte each?")<sup>[SBCS](https://github.com/abrudz/SBCS ".dyalog files using a single byte character set")</sup> and adjust the count.
@voidhawk Unfortunately, some use the deprecated Classic because they are too lazy to adjust the byte count (TIO still shows the character count, even for Unicode). An alternative is to use Extended which does use SBCS on TIO.
woo finally decided to try to fix apl layout so deleted references to apl from aplkeys.sh and now i have a reliable way to switch the APL layout back to latvian \o/
finally an actual use for my second keyboard (s 2 keys) too lol
probably could make it have a mode to input chars for Canvas in which ASCII is always strings, but that's a lot of work and I'm fine with spamming tab after every keypress
@TRITICIMAGVS It is actually a pretty cool one. Though I think you can make it shorter by using Dyalog APL which has implicit output, so you don't have to include ⎕←.
@dzaima Because the only thing it does is give the function a name, I think. It was common practice before I joined PPCG. If the head is used for anything, it has to be counted.