@dyalog OK, this one was easy enough that I'm not going to give away the answer.

The question is, however, is this the most efficient way to achieve this in Dyalog?

@dyalog While the case function (Kap, Dzaima/apl) provides a very nice way to select elements from one array or another (which is basically what Dyalog @ does), using it in this situation makes for a much uglier solution than the above one.

https://functional.cafe/@loke/113068411784085075

Elias Mårtenson (@[email protected])

To avoid hijiacking their thread with non-Dyalog code, I'm creating a separate post here. This is in reference to: https://mastodon.social/@dyalog/113068313517430737 Kap doesn't have the `@` operator, and most of the times you'd use it in Dyalog, the Kap version would either use some variation of structural under, or the case function. In this case, I'm writing the Kap version using case: ``` (@\s≠)«%»(@-,⊂) ``` I have to admit, that this time Dyalog wins in conciseness.

Functional Café