I compiled the following code without errors: def ArrayD_add(s1:Array[Double],s2:Array[Double]) {s1.region() == s2.region(), s1.rail(), s2.rail()}:Array[Double]
{ return s1; } def test() { var v_dst:Array[Array[Double]]! = null; var v:Array[Double]! = null; val v2 = v_dst.reduce( (x:Array[Double],y:Array[Double]) =>ArrayD_add(x as Array[Double]{rail}, y as Array[Double]{rail&®ion==x.region}), v); } ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users