I can define view either by loading a q script, or interactively from console:
q)myview::a+b / even semi-programmatically using ugly strings: value"myview::a+b"
Some exploration:
q)value `. `myview
::
(+;`a;`b)
`a`b
"a+b"
I can see that my newly-designed view is now part of the the global environment dictionary:
q)select myview from `.
myview| a+b
The value part of that key-value pair is a list of lambda types:
q)-3!value select myview from `.
",a+b"
q) type first value select myview from `.
100h
Even though {a+b}
is lambda type as well ...
q)type {a+b}
100h
... the a+b
and {a+b}
are not the same thing:
q){a+b} ~ first value select myview from `.
0b
Question:
Now that myview
is defined in the global environment, how can I change its definition programmatically, to say a+c
lambda expression, by referring to that view by name, i.e. `myview
?
For example, I may want to process this input:
q)config:()!(); config[`myview]:"a+c"