Sorting algorithms/Heapsort: Difference between revisions

Content added Content deleted
(added FunL)
(added FunL)
Line 915: Line 915:


=={{header|FunL}}==
=={{header|FunL}}==
Direct, line by line translation of the pseudocode. The array object (using Scala's <code>ArraySeq</code> class) has built-in method <code>length</code>, so the <code>count</code> parameter is not needed.
Direct translation of the pseudocode. The array object (using Scala's <code>ArraySeq</code> class) has built-in method <code>length</code>, so the <code>count</code> parameter is not needed.


<lang funl>def heapSort( a ) =
<lang funl>def heapSort( a ) =