Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,13 @@ With the union of concurrency and iteration, the sky is the limit.
let every = fn(arr, check) {
let passed = true;
map(arr, fn(e) {
switch check(e) { case true: passed = false; } }
switch check(e) { case false: passed = false; } }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

)
return passed;
};

result = every([5,2,4,1,3], fn(e) { return e >= 2 }); // false
result1 = every([5,2,4,1,3], fn(e) { return e >= 2 }); // false
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep things simple I would just leave this bit as it was

result2 = every([5,2,4,1,3], fn(e) { return e >= 1 }); // true
```

With this speed, your program's going to finish before you've even started writing it.
Expand Down