Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 606:
=={{header|Smalltalk}}==
A straight translation from the pseudocode above. Swap is done with a block closure [http://en.wikipedia.org/wiki/Smalltalk#Code_blocks block closure].
<pre>
|item swap itemCount hasChanged|
|