@Razetime It is actually missing one more application of f because you're used to the sometimes annoying aspect of ⍣ that it always applies f at least once:
@ngn @Bubbler You folks are doing Project Euler? Friends key: 52715_d337e9574c3aea0ad76fd977063b16cc (I mainly did this stuff in high school and university though, it's been a few years)
@Adám I want to make a site similar to tio which executes code using tryAPL and has some convenient things like postifying with SBCS link, CMCifying, converting plaintext to arrays and so on
@Adám No but if we're running a webserver to do Jarvis anyway there's not really a reason for it not to be part of it - at this point it would be more work to create the github repo
@Razetime The API is useable, if you email me rpark at then maybe later today or certainly later this week I'll send updated API description materials (which might become part of TryAPL help tab) if you'd be willing to give feedback / just check it makes sense?
@MartinJaniczek More like, "enough 10s", but you can also think of it as "10⊥1 2 3 4 computes the base-10 evaluation of those digits, so 10(⊥⍣¯1)1234 asks "what value of Y satisfies 1234 ≡ 10⊥Y?" and since you only need a single 10 to do base evaluation, you also only need a single 10 for ⊥⍣¯1.
Hello! I've been thinking about expressing an `IsPrime` function with simple operations for a while. I managed to cut it down to `⋄{2=+/⍵(÷=(⌊÷))⍳⍵}¨⍳30`
@diogotito To avoid confusion in the future, note that APLers tend to call things like | and +functions, reserving the word operator for things like / in +/.
@MartinJaniczek Although that could be optimized a bit to only try for numbers up to sqrt(n), since there can be no divisors above the sqrt. Something like ⍳⌊0.5*⍨7
@dzaima which I happen to use as a prefix for my window manager, but it's ok for now
@Adám So, as I as saying, I have a tablet with dimensions `2160 1620` I want to write a nice APL expression to have 2160 1620 ÷ 1 2160 1620 ÷ 2 2160 1620 ÷ 3 and so forth
You could use the rank operator, try entering 1 2 3 4 5+⍤1 0 ⊢ 1 2 3, this means take rank 1 cells from the left (the vector) and rank 0 cells from the right (each of the scalars)
50 rep bounty to codegolf.stackexchange.com/q/218059 for the shortest dyalog (extended or otherwise) solution that is at least half as short as the existing 48-byter, i.e. 24 bytes (can't start a bounty for such a new challenge, so here is my informal statement)
@diogotito (what i do is just clear /opt/mdyalog/*/64/unicode/aplkeys.sh and change the keyboard manually with something like setxkbmap -layout previousLayout,apl -variant ,dyalog -option 'grp:switch')
@diogotito "when the "apl" layout is enabled" the purpose of that is to make it get enabled on altgr. Do both altgr+shift+j and shift+altgr+j work for you?
@diogotito right, on non-ASCII keyboards things like that happen. if you have some unused modifier keys, you could choose the APL key the be a different key (what I do is just switch between APL and LV layouts when needed, but all i'm losing is accented keys, you're also losing braces and brackets which are still pretty important)
@dzaima (see options with grep "grp:" /usr/share/X11/xkb/rules/base.lst)
Hahahaha I didn't mean to ask for tech support for this particular issue because it looks like it was already well documented in the wiki and such, but thanks thanks a lot for your time and kindness :)