Heap::Binary(3pm)
π Heap::Binary β a binary heap bestie π
okay so this is Heap::Binary, a Perl module from the Heap family, and it's literally just a binary heap to keep your data partially sorted β¨ it lives at Heap::Binary(3pm) in the User Contributed Perl Documentation, and honestly? iconic.
πΈ SYNOPSIS πΈ
use Heap::Binary;
$heap = Heap::Binary->new;
# see Heap(3) for usage
bestie, fr fr, the real usage deets live over inHeap(3)β this page is just theHeap::Binaryglow-up π
π«Ά DESCRIPTION π«Ά
So what does it do?? It keeps an array of elements in heap order π β that's the whole vibe.
And the way that works: the heap method of an element is used to store the index into the array that refers to the element π so each element lowkey knows where it sits in the lineup.
For all the actual how-to-use-it details, go read Heap β that's the main character here, we're just the sibling π
β¨ AUTHOR β¨
John Macdonald, john@perlwolf.com π
π COPYRIGHT π
Copyright 1998-2007, O'Reilly & Associates.
This code is distributed under the same copyright terms as perl itself β no cap π«‘
π¦ SEE ALSO π¦
and that's the tea π this page is from perl v5.36.0, dated 2022-10-22, filed under Heap::Binary(3pm) β go forth and heap, bestie, you got this ππ
π¦ where this page comes from
- ubuntu noble: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms