Stream puzzler (original) (raw)
Remi Forax forax at univ-mlv.fr
Mon Jan 14 03:04:58 PST 2013
- Previous message: Stream puzzler
- Next message: Stream puzzler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/14/2013 11:49 AM, Paul Sandoz wrote:
On Jan 14, 2013, at 9:19 AM, Remi Forax <forax at univ-mlv.fr> wrote:
Using the last binary drop (otherwise replace accumulate by collect), can you spot the bug (hint, it doesn't compile). It compiles for me using a build from the tip.
Do you have named the method containing the code intoList or something else ? or the import static rules have changed ??
Paul.
Rémi
import java.util.Arrays; import java.util.List; import java.util.stream.Accumulators;
import static java.util.stream.Accumulators.*; public class Bug { public static List intoList(Object[] args) { return Arrays.stream(args).accumulate(intoList()); } } Are we able to do something for that ? Rémi
- Previous message: Stream puzzler
- Next message: Stream puzzler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list