Skip to content

window behavior #135

@paulk-asert

Description

@paulk-asert

When the partials are bigger than the step size, one might expect the window to continue stepping, see #134.

E.g.:

final Stream<String> input = Stream.of("A", "B", "C", "D", "E", "F", "G");
input.gather(Gatherers4j.window(5, 2, true)).forEach(System.out::println);

Output might be expected to be:

[A, B, C, D, E]
[C, D, E, F, G]
[E, F, G]
[G]

Currently, last line is omitted. Of course, you can define window to have whatever behavior you like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions