function loop

Hi, All<o:p></o:p>

<o:p> </o:p>

f: {show x+y; show z}<o:p></o:p>

k:((1;2;a);(3;4;b);(5;6;`c))<o:p></o:p>

<o:p> </o:p>

I need to call the function f three times like this:<o:p></o:p>

<o:p> </o:p>

f[1;2;`a]<o:p></o:p>

f[3;4;`b]<o:p></o:p>

f[5;6;`c]<o:p></o:p>

<o:p> </o:p>

How to do this with one statement? Any ideas?<o:p></o:p>

<o:p> </o:p>

Roy<o:p></o:p>

<o:p> </o:p>

use each-right to loop and .(dot) operator for function call.
f  ./: k;

f ./: k

See the bottom half of http://code.kx.com/wiki/Reference/DotSymbol

f .'k

Thanks J<o:p></o:p>

<o:p> </o:p>

From: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] On Behalf Of RAHUL ASATI
Sent: Monday, August 22, 2016 11:55 PM
To: Kdb+ Personal Developers <personal-kdbplus@googlegroups.com>
Subject: [personal kdb+] Re: function loop<o:p></o:p>

<o:p> </o:p>

use each-right to loop and .(dot) operator for function call.<o:p></o:p>

f  ./: k;