How would I connect a Dyalog APL Client to reach out to a q server? The protocol seems simple enough and very well documented when it comes to decoding the answer, but I can't seem to get past the very first step, the initial handshaking, either with Dyalog APL or VBA. For now, if I could get t...
Dyalog are at the @aplgermany Spring meeting in Cologne this week. You can see more details and the full schedule here https://apl-germany.de/apl-germany-fruehjahrstagung-16-17-april-2018/
Don't forget to join our live webinar - Isolates and other APL Processes in the Cloud - on Thursday 19 April at 15:00 UTC where Morten will demonstrate how to launch APL processes on Amazon WebServices under program control
https://dyalog.tv/Webinar
@Adám Hey, I was looking at the answer you linked there and I was wondering if you could tell me why ↑∪↓⍉(⍋∘⍋⍴⌸⊢) works for the Word Icicle challenge. My answer there is very convoluted.
W will be the 4th, o the 11th, etc. Now since we need to remove them in sort order, W will be the 4th to go, o the 11th to go, etc. This also means that there will be 4 Ws in its column, 11 os in its column, etc.
@Adám
┌────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┐
│Word Icicle!│Word Icicle │Word cicle │ ord cicle │ ord icle │ ord i le │ or i le │ or i l │ or l │ or │ r │
└────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┘
Sorry I wasn't responding, I was having lunch with my boss :p
@Adám Another question, is there a way to give multiple arguments to ⌽ so it would rotate the argument multiple times? i.e. something like 1 2⌽'123' yielding 231 312 (I know that doesn't work like that, btw)
I'm trying to use ⍣ but it'll only yield the last result
@J.Sallé Well, the good thing is that you're building up so much APL experience that you're doing things reflexively. APL becomes a way of thinking rather than coding.
@J.Sallé Remember, any time you have (ParenthesisedExpression) Function SingleToken you can save a byte with SingleToken Function⍨ ParenthesisedExpression.
The problem here is that you want to call ⍎ monadically on each one. Since you need the ¨, you can't do +/∘⍎¨ as that would require +/∘(⍎¨) to limit the ¨ to ⍎ and not +/. But since you're only evaluating numbers, remember that numbers have the same value in every namespace, so you can use dyadic ⍎ to evaluate them in a specific scalar (so that it distributes to each rotation vector) 1-char namespace: #⍎¨. Now you can write +/#≢÷⍨⍎¨⍳∘≢⌽¨⊂.
@J.Sallé That's too much "pepper" (looks like pepper dots). You can fuse the loops: +/≢÷⍨#⍎¨⍳∘≢⌽¨⊂ → +/≢÷⍨⍳∘≢(⍎⌽)¨⊂. Since it costs you 2 (parens) and saves you 2 (# and ¨) it is free.