Hi Guys: see this code ~~~ int[] ar = [1,2,3,4,52,34,22]; auto h = heapify(ar); assert(h.length() == ar.length); writeln("h:",h); assert(h.empty()); ~~~ dmd v2.086.0 run all assert passed. Why?
Why after writeln the binaryHeap become empty?
lili via Digitalmars-d-learn Tue, 18 Jun 2019 08:50:36 -0700
- Why after writeln the binaryHeap ... lili via Digitalmars-d-learn
- Re: Why after writeln the bi... Johannes Loher via Digitalmars-d-learn
- Re: Why after writeln th... lili via Digitalmars-d-learn
- Re: Why after writel... Jonathan M Davis via Digitalmars-d-learn
- Re: Why after writel... Mike Parker via Digitalmars-d-learn
- Re: Why after writeln the bi... Jonathan M Davis via Digitalmars-d-learn