On Wednesday 02 June 2010 11:41:04 pm Yoav Zibin wrote: > The definition of reduce is: > def reduce(op:(T,T)=>T, unit:T):T > > You pass it a function with a guard: > ArrayD_add(s1:Array[Double], > s2:Array[Double]) > *{s1.region() == s2.region(), s1.rail(), s2.rail()}*: Array[Double] > > remove the guard, and it should fit. >
Is there a type cast for function types ? Something along the lines ArrayD_add as op:(T,T)=>T ? Otherwise, I have to find a guard-free implementation for ArrayD_add... -- Mit freundlichen Grüßen / Kind regards Dr. Christoph Pospiech High Performance & Parallel Computing Phone: +49-351 86269826 Mobile: +49-171-765 5871 E-Mail: christoph.pospi...@de.ibm.com ------------------------------------- IBM Deutschland GmbH Vorsitzender des Aufsichtsrats: Erich Clementi Geschäftsführung: Martin Jetter (Vorsitzender), Reinhard Reschke, Christoph Grandpierre, Klaus Lintelmann, Michael Diemer, Martina Koederitz Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 WEEE-Reg.-Nr. DE 99369940 ------------------------------------------------------------------------------ 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