Glad it worked out for you Samir

Sometimes if you are only dealing with two types you can separate them using 
the right and left arguments which can save the overhead of boxing, but if you 
can't then boxing is the way that you have to go.

Cheers, bob

> On Mar 7, 2021, at 14:26, 'Samir' via Programming <[email protected]> 
> wrote:
> 
> Hello Bob, I didn't receive your reply on email but I saw it on nabble forum, 
> many thanks for your answer, boxing was exactly what I was missing 
> 
> On March 7, 2021 6:56:44 PM GMT+02:00, [email protected] wrote:
>> Dears, apologies for the lame question but how can we pass different types 
>> of variables to function/verb? For example if a function will receive 
>> variables a, b, and c of types array, integer, and string respectively 
>> 
>> get =: {{ (I.(<c) E. b {|:a){a
>> 
>> the target of verb is to filter column of index 'c' in array 'a' to a 
>> specific string 'b'
>> 
>> I tried taking y as multi-variables 'a b c' =: y , but it didn't work for 
>> different types of variables.
>> 
>> Regards,
>> Samir
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to