0

I want to change namespace by a given parameter something like below:

f:{system "d x"}

but this failed, .i.e

q)f[".new"]

{system "d x"}

'"

@

.,["\\"]

"d x"

How can I do this?

Thanks.

Thomas Smyth - Treliant
  • 4,993
  • 6
  • 25
  • 36
Rongshu
  • 31
  • 3

1 Answers1

1

You need to concatenate the function param x to your system call using join ,

i.e.

q)f:{system "d ",x}

q).ns.v:1
q)f[".ns"]
q.ns)v
1
James Little
  • 1,964
  • 13
  • 12