The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Mar 14, 2021 08:22
@Adám Yes! Bit of a pain to set up but 5-row layout is working like a charm. \o/ Yay
Mar 14, 2021 08:06
@Adám !! Hacker's Keyboard, Oh! I think I'd tried that on Android for other purposes in past times; I didn't know it might have an APL mode, amazing! I'll try that thank you.
Mar 14, 2021 07:43
I managed to build GNU APL for my android phone running under Termux which is Debian-based. However the only app claiming to offer an APL keyboard is very out-of-date and doesn't seem to work on modern Android. Does anyone know of a way to input APL on recent Android versions?
Mar 7, 2021 06:20
@Marshall Hi, GNU APL dabbler here, I can confirm it doesn't support control structures, only classical branch
Mar 5, 2021 03:48
@Marshall thanks. I'll re-read the ⎕ML help, good to know
Mar 5, 2021 03:44
OK thanks. Yeah I read that GNU APl's support of {} is a bit limited (no guards or multiple statements ...}
Mar 5, 2021 03:40
I almost think GNU APL is hitting a bug on it, since the parse line it spits out has a garbage char at the end.
Mar 5, 2021 03:39
@Marshall Aha, that works in Dyalog, at least.
Mar 5, 2021 03:36
Hi all, am I crazy or does the Pascal's Triangle example on Wikipedia have syntax errors? I tried it on both GNU APL and Dyalog, both reject it. See

https://en.wikipedia.org/wiki/Talk:APL_syntax_and_symbols#Solving_Puzzles_:_Pascal's_Triangle_example_has_errors.
Feb 23, 2021 04:27
Ah, I'd tried applying ⊃ to v, but your solution is from the other side, making the search str into an array -- ok that makes some sense
Feb 23, 2021 04:25
@Bubbler wow that's even better, all in one step. More studying to do, thanks
Feb 23, 2021 04:25
Aw geez, I had tried variations of that, I knew it must have needed ≡¨ and ⊂ but I guess I just hadn't gotten it right! That gives me the bool vector. Hmm I need to study that and why I didn't get it right.
Thanks!
Feb 23, 2021 04:17
Hi, does anyone know the idiomatic way to check if a string is found within a vector of strings? eg.
v ← 'foo' 'bar' 'baz' 'buzz'

'bar' ≡ 'bar' ⍝ and
'bar' ≡ 'baz'

... return 1 and 0 as expected, but

'bar' ≡ v ⍝ doesn't work

Using GNU APL so APL2-compatible solutions would be appreciated!