Skip to content

Commit fdf804e

Browse files
committed
OrderedRobinDict
1 parent 408e9f4 commit fdf804e

File tree

6 files changed

+908
-3
lines changed

6 files changed

+908
-3
lines changed

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This package implements a variety of data structures, including
1414
- Binary Heap
1515
- Mutable Binary Heap
1616
- Ordered Dicts and Sets
17-
- RobinDict (implemented with [Robin Hood Hashing](https://cs.uwaterloo.ca/research/tr/1986/CS-86-14.pdf))
17+
- RobinDict and OrderedRobinDict (implemented with [Robin Hood Hashing](https://cs.uwaterloo.ca/research/tr/1986/CS-86-14.pdf))
1818
- Dictionaries with Defaults
1919
- Trie
2020
- Linked List and Mutable Linked List

docs/src/robin_dict.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DocTestSetup = :(using DataStructures)
66

77
`RobinDict` provides a standard dictionary, conforming to the AbstractDict protocol, which uses the Robin Hood hashing algorithm with backward-shift deletion to provide improved average performance over Dict.
88

9-
The interface of `RobinDict` replicates that of `Dict`.
9+
The interface of `RobinDict` replicates that of `Dict`. This has an ordered version called `OrderedRobinDict`, which replicates the interface of `OrderedDict`.
1010

1111
Examples:
1212

src/DataStructures.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module DataStructures
1212
isless, union, intersect, symdiff, setdiff, issubset,
1313
searchsortedfirst, searchsortedlast, in,
1414
eachindex, keytype, valtype, minimum, maximum, size,
15-
zero, checkbounds
15+
zero, checkbounds, filter!, isbitstype, isbitsunion,
16+
isiterable, dict_with_eltype, KeySet, Callable, _tablesz
1617

1718

1819
using OrderedCollections
@@ -53,6 +54,7 @@ module DataStructures
5354

5455
export MultiDict, enumerateall
5556
export RobinDict
57+
export OrderedRobinDict, isordered
5658

5759
export DiBitVector
5860

@@ -90,6 +92,7 @@ module DataStructures
9092
include("tokens2.jl")
9193
include("container_loops.jl")
9294
include("robin_dict.jl")
95+
include("ordered_robin_dict.jl")
9396
export
9497
CircularBuffer,
9598
capacity,

0 commit comments

Comments
 (0)