Skip to content

Commit

Permalink
add #forEach(fn) in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
janogonzalez committed Feb 6, 2014
1 parent 9fdc4fb commit 03c5ebd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Throws an `Error` when the queue is empty.
Enqueues the `element` at the priority queue and returns its new size.
### PriorityQueue#forEach(fn)
Executes `fn` on each element. Just be careful to not modify the priorities,
since the queue won't reorder itself.
### PriorityQueue#isEmpty()
Returns whether the priority queue is empty or not.
Expand Down

0 comments on commit 03c5ebd

Please sign in to comment.