Skip to content

Chapter 2 Exercise 2 solution doesn't meet exercise requirement #1

@ghost

Description

Exercise: Verify that asking for the first five long words does not call the filter method once the fifth long word has been found. Simply log each method call.

For your solution filter is being called on every element in the stream, you then limit the resulting stream to 5 elements.

The exercise only wants filter to be called five times.

I only post this issue as I do not know how to meet the exercise requirement myself, not to be petty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions