It isn't nonMatch, but non
eMatch. The xxxMatch methods are equivalent to quantifications:
allMatch ≡ ∀anyMatch ≡ ∃noneMatch ≡ ∀•¬ ≡ ¬∃Have you read the documentation for
Stream? It explains there what the difference is between terminal and internediate operations on Streams, and each method has a comment saying something like, “this is a stateful intermediate operation.”
What did you think the correct answers to the questions you quoted were, and what were the answers shown in the book?