Usually we don't put types on local variables in functions, but if you want them, use a space around the colon (see https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide). Also in this case it might be easier to write `val (iter1, iter2) = i.duplicate`