@@ -428,12 +428,15 @@ end
428
428
allunique(f, itr) -> Bool
429
429
430
430
Return `true` if all values from `itr` are distinct when compared with [`isequal`](@ref).
431
- Or if all `f(x) for x in itr` are distinct, for `allunique(f, itr)`.
431
+ Or if all of `[f(x) for x in itr]` are distinct, for the second method.
432
+
433
+ Note that `allunique(f, itr)` may call `f` fewer than `length(itr)` times.
434
+ The precise number of calls is regarded as an implementation detail.
432
435
433
436
See also: [`unique`](@ref), [`issorted`](@ref), [`allequal`](@ref).
434
437
435
- !!! compat "Julia 1.10 "
436
- The method `allunique(f, itr)` requires at least Julia 1.10 .
438
+ !!! compat "Julia 1.11 "
439
+ The method `allunique(f, itr)` requires at least Julia 1.11 .
437
440
438
441
# Examples
439
442
```jldoctest
@@ -523,15 +526,18 @@ end
523
526
allequal(f, itr) -> Bool
524
527
525
528
Return `true` if all values from `itr` are equal when compared with [`isequal`](@ref).
526
- Or if all `f(x) for x in itr` are equal, for `allequal(f, itr)`.
529
+ Or if all of `[f(x) for x in itr]` are equal, for the second method.
530
+
531
+ Note that `allequal(f, itr)` may call `f` fewer than `length(itr)` times.
532
+ The precise number of calls is regarded as an implementation detail.
527
533
528
534
See also: [`unique`](@ref), [`allunique`](@ref).
529
535
530
536
!!! compat "Julia 1.8"
531
537
The `allequal` function requires at least Julia 1.8.
532
538
533
- !!! compat "Julia 1.10 "
534
- The method `allequal(f, itr)` requires at least Julia 1.10 .
539
+ !!! compat "Julia 1.11 "
540
+ The method `allequal(f, itr)` requires at least Julia 1.11 .
535
541
536
542
# Examples
537
543
```jldoctest
0 commit comments