There are third and fourth alternatives: adverbs and conjunctions.

Beyond that, though, you would need to deal with boxing, or with
serialization (which is slower and more cumbersome) or with task
specific intermediate results (which would, of course, be specific to
the case you're working on).

Thanks,


--
Raul

On Sun, Mar 7, 2021 at 5:29 PM 'robert therriault' via Programming
<[email protected]> wrote:
>
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to