From 03a2e1c51ce8227bb64466b6286b4ea1c33c567a Mon Sep 17 00:00:00 2001 From: charleschang Date: Thu, 23 Nov 2017 18:21:41 +0800 Subject: [PATCH 1/2] update the correct definition for anyMatch --- docs/lec8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lec8.md b/docs/lec8.md index 2e1e72a..4702380 100644 --- a/docs/lec8.md +++ b/docs/lec8.md @@ -331,7 +331,7 @@ Here are more useful terminal operations: - *`noneMatch`* return true if none of the elements pass the given predicate. - *`allMatch`* return true if every element passes the given predicate. -- *`anyMatch`* return true if no elements passes the given predicate. +- *`anyMatch`* return true if any of elements passes the given predicate. ### Example 1: Is this a prime? From bb7fd7bc3cc2df37c0ff1cd9d28e5e8a52993e63 Mon Sep 17 00:00:00 2001 From: charleschang Date: Thu, 23 Nov 2017 18:25:36 +0800 Subject: [PATCH 2/2] update text --- docs/lec8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lec8.md b/docs/lec8.md index 4702380..fe6c7f0 100644 --- a/docs/lec8.md +++ b/docs/lec8.md @@ -331,7 +331,7 @@ Here are more useful terminal operations: - *`noneMatch`* return true if none of the elements pass the given predicate. - *`allMatch`* return true if every element passes the given predicate. -- *`anyMatch`* return true if any of elements passes the given predicate. +- *`anyMatch`* return true if any of the elements passes the given predicate. ### Example 1: Is this a prime?