Hello, I started learning APL yesterday, it's a blast
I am trying to write a function to filter a vector for all the elements ≥0
(using trains)
right now i have (⊢/¨0∘≤) but i think it's taking / as reduce not compress
how can I make it not do that
Wait i do this every time i want ⍨
and that's a length error. waugh
Feels like (0∘≤/⊢) should also work but it wants my function to have a left argument ... again i think it's taking / as its operator case, not the dyad function case
It starts by finding the maximum element with ⌈/ then makes sure it is at least 0 with 0⌈ and adds one with 1+. Now we generate all the integers from 1 to that with ⍳ and removes the argument's elements from the generated integer series with ⊢~⍨. Finally, we take the first (and therefore smallest) element with ⊃
You might be able to remove them under Windows' Language Settings. Click a language you want to remove the APL layout from, then you should get an Options button which you click to get to a list of Keyboards. Now click the APL keyboard and you get a button that says Remove.
@gamma_delta You should be able to find keys at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts which correspond to the unwanted layouts, and then delete them.
Yeah, so instead of that mess, I highly recommend uninstalling the Dyalog IME altogether, and instead using one of my own keyboard layouts: github.com/abrudz/Kbd/releases/tag/v17
My layouts also don't hijack your Ctrl key, so you can keep using it for normal keyboard shortcuts.
@PyGamer0 Each fork-like node (a node without symbol with 3 children) means a 3-train (fork). A single left branch (+) under / means + is the left operand to the operator /.
I read the train from the bottommost rightmost branch: 0⊥⍴ = last item of the shape of the input, 1⌈ = make it 1 if it is zero, +/ sums of the input over the last axis, ÷ divide each sum by the result of 1⌈... which gives "Row averages (0 if none)" (the description on APLcart)
dpkg: dependency problems prevent configuration of dyalog-unicode-180:amd64: dyalog-unicode-180:amd64 depends on libtinfo5; however: Package libtinfo5 is not installed.
dpkg: error processing package dyalog-unicode-180:amd64 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: dyalog-unicode-180:amd64
@rak1507 Harder problem: Add . for going out of the image and o for going into the image, thereby moving the problem from 2D to 3D space. How would you solve it now?
I'm trying to use tryapl to do a thing (might publish it if I ever bother finishing it), and I don't think the delay is a problem but it just makes it feel a little bit slower
@Adám I need to "mine" for a given string with a number appended, such that the resulting md5 hash starts with 5 or more zeroes
> If your secret key is abcdef, the answer is 609043, because the MD5 hash of abcdef609043 starts with five zeroes (000001dbbfa...), and it is the lowest such number to do so.
and irritatingly enough i don't think i can use it monadically because i can't figure out how to get text input to md5sum without Windows appending a newline