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 Feb 5, 2022
1 parent 988a81f commit f6d2585
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 f6d2585

Please sign in to comment.