MapExample null reference fixed
*/
package tornado.examples.functional;
+import java.util.stream.IntStream;
+
public class MapExample {
public static Integer inc(Integer value) {
@@ -36,6 +38,8 @@ public class MapExample {
Integer[] a = new Integer[numElements];
Integer[] b = new Integer[numElements];
+ IntStream.range(0, numElements).forEach(idx -> a[idx] = idx);
+
Operators.map(
MapExample::inc,
a, b
