@RGS Nah, it is a derived function. Applied monadically to an array that possibly contains objects with default properties which in turn may also have objects with default properties, the function will traverse the whole structure and materialise all such objects into arrays.
Mind you, ⍥k isn't implemented (yet) in Dyalog APL.
@RGS Yeah, it is both good an bad. It makes it easy to do a lot of fancy stuff in the Windows IDE, but also makes it very hard for RIDE to do the same things.
APL (Dyalog), 32 bytes*
Tacit prefix function. Assumes ⎕IO (Index Origin) 0, which is default on many systems.
31 28 30⊃⍨∘⊃'.p|un|no|f'⎕S 1⍠1
Try it online!
⍠1 case insensitively
1 return the length of the
⎕S PCRE Search for
'.p|un|no|f' any-char,"p" or "un" or "no" or "f"
⊃⍨∘⊃ and use...
> Also have a look at the workspaces delivered with Dyalog. They are described in the User Guide, and contain some utility functions that may be useful to you.
@dzaima @Adám that is my concern; I wonder why you (Adám) wanted to connect to a full Linux APL.
@Adám nice PT usage there, threw me off for a second
But I am trying to use a tool that is well tested under Linux and not so much under Windows, but the usage I'll give to that tool is related to APL and so to take that tool for a spin I also need APL under WSL
@RGS ctrl+enter is on TIO, repl.it, SE chat, godbolt (i.e. all places i checked (that i didn't make)); wherever i ended up on a Dyalog jupyter, ctrl+enter is also accepted
shift+enter is much more often a way to write a newline if enter would otherwise submit
The Windows Terminal[1] disables the Dyalog IME keyboard, but it doesn't disable Adam's keyboard. [1] the recent one which tries to replace conhost and add Unicode support and VT escape sequences.