On 02/12/2013 06:53 PM, Dmitry Bessonov wrote: > Hello, > > The following line prints out the first element, "1" > > Arrays.asList(1, 2, > 3).stream().peek(System.err::println).iterator().hasNext() > > Is it really an expected behavior? > > -Dmitry > > > no, it's not. Rémi