2

I'm trying to use Dyalog APL to generate a function list from within a startup script using: ⍎ ')fns'

but get this error:

⍎VALUE ERROR

Using ⍎ ')fns' in a latent expression script in APLX is not a problem, but I get clobbered doing the same thing in Dyalog.

Help appreciated.

Thanks

MBaas
  • 7,248
  • 6
  • 44
  • 61
user3161399
  • 253
  • 2
  • 6

1 Answers1

3

Two things:

  • the )-commands are called "system commands" and their only sensible use is in the APL-Session, not in user-defined functions (because they are just "commands", they do not return a result.)
  • to get the equivalent of )fnsunder program-control, use ⎕NL 3 or (my preferred way) ⎕NL-3 which returns the result as vector of vectors. The "quad-things" are system-functions that return results.

Try it online!

Adám
  • 6,573
  • 20
  • 37
MBaas
  • 7,248
  • 6
  • 44
  • 61