Skip to content

Commit 502fd78

Browse files
committed
Add top alias
1 parent 5c433f7 commit 502fd78

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DataStructures"
22
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
3-
version = "0.18.2"
3+
version = "0.18.3"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/DataStructures.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module DataStructures
2525
export AbstractHeap, compare, extract_all!, extract_all_rev!
2626
export BinaryHeap, BinaryMinHeap, BinaryMaxHeap, nlargest, nsmallest
2727
export MutableBinaryHeap, MutableBinaryMinHeap, MutableBinaryMaxHeap
28-
export heapify!, heapify, heappop!, heappush!, isheap
28+
export heapify!, heapify, heappop!, heappush!, isheap, top
2929
export BinaryMinMaxHeap, popmin!, popmax!, popall!
3030

3131
export Trie, subtrie, keys_with_prefix, partial_path
@@ -112,4 +112,5 @@ module DataStructures
112112
include("splay_tree.jl")
113113

114114
include("deprecations.jl")
115+
const top = first
115116
end

0 commit comments

Comments
 (0)