Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 606: | Line 606: | ||
=={{header|Smalltalk}}== |
=={{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> |
<pre> |
||
|item swap itemCount hasChanged| |
|item swap itemCount hasChanged| |