This commit is contained in:
jverzani
2025-07-29 17:11:34 -04:00
parent 50cb645452
commit 8398f21b87
6 changed files with 9 additions and 9 deletions

View File

@@ -926,7 +926,7 @@ The latter using *splatting* to iterate over each value in `xs` and pass it to `
A few reductions work with *predicate* functions---those that return `true` or `false`. Let's use `iseven` as an example, which tests if a number is even.
We can check if *all* the alements of a container are even or if *any* of the elements of a container are even with `all` and `even`:
We can check if *all* the elements of a container are even or if *any* of the elements of a container are even with `all` and `even`:
```{julia}
xs = [1, 1, 2, 3, 5]