Skip to content

Commit

Permalink
Add Dict example to jldoctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBieganek committed Jan 30, 2022
1 parent f727766 commit 65621bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/set.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ true
julia> allequal([1, 2])
false
julia> allequal(Dict(:a => 1, :b => 1))
false
```
"""
allequal(itr) = isempty(itr) ? true : all(isequal(first(itr)), itr)
Expand Down

0 comments on commit 65621bc

Please sign in to comment.