You can also define it to have that rank by default: asd =: 3 : 0 "0 t =. 2*(1+y) 1+t*(t-1)+i.4 )
asd 1 2 3 13 17 21 25 31 37 43 49 57 65 73 81 If you want all the numbers in one list rather than three lines then do: ,@:asd 1 2 3 2009/8/31 John Randall <[email protected]>: > Andrea Ambu wrote: >> It works very well if I call it with just a number as parameter. I'd >> like to call it with a list as parameter, for example: >> >> asd 1 2 3 >> >> and I'd like to have the same output that >> >> (asd 1), (asd 2), asd 3 >> > You need to apply asd with rank 0: > > (asd 1),(asd 2),asd 3 > 13 17 21 25 31 37 43 49 57 65 73 81 > , asd"(0) 1 2 3 > 13 17 21 25 31 37 43 49 57 65 73 81 > > Best wishes, > > John > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
