Skip to content

Commit

Permalink
change docstring to say itr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Aug 2, 2023
1 parent c947a12 commit e14eb0d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/set.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,15 @@ end

"""
allunique(itr) -> Bool
allunique(f, xs)
allunique(f, itr) -> Bool
Return `true` if all values from `itr` are distinct when compared with [`isequal`](@ref).
The second form takes `itr = (f(x) for x in xs)`.
Or if all `f(x) for x in itr` are distinct, for `allunique(f, itr)`.
See also: [`unique`](@ref), [`issorted`](@ref), [`allequal`](@ref).
!!! compat "Julia 1.10"
The method `allunique(f, xs)` requires at least Julia 1.10.
The method `allunique(f, itr)` requires at least Julia 1.10.
# Examples
```jldoctest
Expand Down Expand Up @@ -520,18 +520,18 @@ end

"""
allequal(itr) -> Bool
allequal(f, xs)
allequal(f, itr) -> Bool
Return `true` if all values from `itr` are equal when compared with [`isequal`](@ref).
The second form takes `itr = (f(x) for x in xs)`.
Or if all `f(x) for x in itr` are equal, for `allequal(f, itr)`.
See also: [`unique`](@ref), [`allunique`](@ref).
!!! compat "Julia 1.8"
The `allequal` function requires at least Julia 1.8.
!!! compat "Julia 1.10"
The method `allequal(f, xs)` requires at least Julia 1.10.
The method `allequal(f, itr)` requires at least Julia 1.10.
# Examples
```jldoctest
Expand Down

0 comments on commit e14eb0d

Please sign in to comment.