2017-02-03

microcell: (Default)
2017-02-03 02:13 am
Entry tags:

Funny way to kill your workstation with streams

IntStream.iterate(0, i-> (i + 1) % 2)
.parallel()
.distinct()
.limit(3)
.forEach(System.out::println);