Skip operation

Henry Jen henry.jen at oracle.com
Mon Sep 17 08:31:29 PDT 2012


The patch looks good.

At beginning I thought it to be a 'step' operation, then realize it's a one-time skip operation. 

Does it make sense to have a step operation as well? Both skip and serial probably be serial only.

Cheers,
Henry


On Sep 17, 2012, at 6:25 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:

> Hi,
> 
> Please see here for an implementation of the skip operation:
> 
>  http://cr.openjdk.java.net/~psandoz/lambda/skip/webrev/
> 
> Skip can be combined with limit to obtain a sub-stream.
> 
> The skip impl currently has a dumb parallel implementation.
> 
> This patch is based on the previous one [1] for infinite streams.
> 
> Paul.
> 
> [1] http://cr.openjdk.java.net/~psandoz/lambda/inf/webrev/
> 
> which is based on:
> 
> http://cr.openjdk.java.net/~psandoz/lambda/limit/webrev/
> 



More information about the lambda-dev mailing list