calling amend

hi guys,how can i use : (amend) with . (dot) or @ (apply) toset a list of variables?or maybe, the solution does not involve . or @ ?q) .[:;x,2]2q) x'xq)@[:;x,2]:[(x;2)]the rationale is that i need to apply this functionover a list. (say i have vars:xyz vals: 1 2 3)ta, jack

q)@[.;xyz;:;1 2 3]
`.
q)x
1
q)y
2
q)z
3

Not sure this is what you want though.

Junan

charset=us-ascii
X-Mailer: iPhone Mail (8C148)
In-Reply-To:
Message-Id: <61ACF25B-296C-4A65-933B-B88E5E9DF75A@gmail.com>
Date: Mon, 27 Dec 2010 01:48:32 -0500
To: “personal-kdbplus@googlegroups.com

Mime-Version: 1.0 (iPhone Mail 8C148)

I might be confused, but I think you want:

vars set’ vals

?

On Dec 27, 1:48 pm, Timothy Rieder <trie…> wrote:> vars set’ valsThat’s probably the cleanest solution. Note that set is actually justa projection of the verb dot:xyz set' 1 2 3becomes(.[x;();:;1];.[y;();:;2];.[z;();:;3])In Junan’s version, the “dot” is the name of the root dictionary (notthe verb). Both solutions only work with global variables and bypassany locals. For example,{xy`z set’1 2 3;x+y+z}[0;0;0]binds x, y, and z globally, but still evaluates to zero.</trie…>

thanks to all - set’ works well for me.

turns out my main problem was that
one of the symbols was `get

ta, jack.