If I have an array of ⎕JSON namespaces and I want to pick out a subset of those where if a field exists, and if so this field matches some criterion, how would I do that? My problem is the "if the field exists". So, if data is my array of namespaces and I'm looking for name anywhere in a field customer which may or may not be present:
Where←/⍨
Has←{×⍺.⎕NC⊂⊂⍵}
In←{⍺∘(∨/⍷)¨⍵}
From←{⍵⍎¨⊂⍺}
'customer' From {⍵ Where name In ⍵.customer} data Where data Has 'customer'
┌────┬────┐
│Carl│Earl│
└────┴────┘
In the List function of a user command, what should the Parse attribute be set to if I want my function to accept any number of string arguments (i.e. like a vector of character vectors)?
Hi, I'm having trouble setting up my keyboard to type APL characters. I installed dyalog and went into my keyboard settings where "apl" of the variant "dyalog" was already added as a layout. I configured "change layout" key but I was still unable to type APL characters when using it. Now, for some reason, the APL layout in my keyboard settings is gone and I can't add it from the list of available layouts anymore.
I've been looking around online but so far I haven't found a solution, other than "if you're using a newer debian derivative it's already installed" (which was the case for me apparently, but now the layout is gone and I don't know how to get it back). I'm using the latest Linux Mint distro with XFCE.
I suppose I'm looking for a fool-proof set of steps to set this up
@Johnny see wiki. I use the top command (setxkbmap -layout us,apl -variant ,dyalog -option grp:switch (with some tiny irrelevant tweaks)) with some manual shortcuts to switch to/from it
that enables typing APL chars with <altgr>+whatever, with grp:switch replaceable with any of these
Hmm, win_switch doesn't work for me as a key to switch to the APL layout, do you know of any reason why that might be? Others, such as switch (altgr) work
do you have any other special xkb things configured? (caps lock remapping or xcompose) if not (or if you're fine with temporarily disabling), it may be worth trying setxkbmap -layout us,apl -variant ,dyalog -option -option grp:win_switch (where the first -option clears all xkb configuration)
(also worth viewing the output of setxkbmap -query)
(fwiw win_switch works fine for me, linux mint 20, cinnamon)
``` rules: evdev model: pc105 layout: de,apl variant: ,dyalog options: grp:win_switch ``` This is the output of the query. I did override all previous xkb settings right before (I didn't have anything configured anyway) but it still doesn't work
The Onboard app shows the win key as the super key I think, maybe that has something to do with it? Haven't found whether xkb makes a difference between win and super for its configuration though
@Adám Not sure whether I'm experiencing this because I'm using neither gnome nor ubuntu 21, but it just looks like an alternative to me anyway. Tbf, caps lock is probably a better substitute for me than Alt Gr
@Adám Installed dyalog-mode (github.com/harsman/dyalog-mode) today and I've been thinking about gnu-apl-mode and its APL-Z input method
It used to be more common in universities, long before Python and R. Maybe it'll see a comeback. Some teachers will allow you to use any language you want…
@dzaima Could it be that something has changed in the latest versions of Ubuntu-based distros? I added the trouble-shooting entry on the wiki because I spotted this.
/me thinks that someone needs to re-create the Symbolics LISP Machine keyboard (the so-called "Space Cadet" keyboard) as a modern USB keyboard, complete with drivers to support the at-least-three additional modifier keys that current keyboards don't have...
(this is the first i've heard of anyone actually having a negative dividend for modulo anywhere. And the APL definition (where (with a positive dividend) the result is positive) is what i think you want 99.9% of the time)
i think it'll take longer for one to understand what the APLcart entry means and does, than figuring out how to implement what you need yourself (and you'll end up learning more that way too)