Formatting here is weird, perhaps due to tabs. It would look better as
```
    sc.parallelize(data, numSlices = 2)
      .map { case (k, v) =>
        (new IntWritable(k), new ArrayWritable(classOf[DoubleWritable], v.map(new DoubleWritable(_))))
      }.saveAsNewAPIHadoopFile[SequenceFileOutputFormat[IntWritable, ArrayWritable]](arrPath)
```