$(|:x)*"1 _ y
9 4 20

R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] Namens Geoff Canyon
> Verzonden: zondag 9 maart 2008 22:05
> Aan: Programming forum
> Onderwerp: [Jprogramming] Can't get the ranks right
> 
> I have two arrays, $x is 4 9 and $y is 4 20
> 
> I want to create a function that takes each 4 element list from x, and
> multiplies y by that list. The shape of the result should be 9 4 20.
> 
> x */ y razes x completely, giving 36 4 20 (sorry if the order of my
> shapes is off -- I'm still getting the hang of this).
> x */"1 y doesn't quite get it, and
> x */"1 _ y (what I thought would be the answer) gives me the same
> result as x */ y
> 
> regards,
> 
> Geoff
> ----------------------------------------------------------------------
> 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