Sorting algorithms/Bubble sort: Difference between revisions

m
→‎{{header|Standard ML}}: fix syntax highlighting
m (→‎{{header|Wren}}: Minor tidy)
m (→‎{{header|Standard ML}}: fix syntax highlighting)
 
Line 7,458:
=={{header|Standard ML}}==
Assumes a list of integers.
<syntaxhighlight lang="sml">
<pre>
fun bubble_select [] = []
| bubble_select [a] = [a]
Line 7,466:
fun bubblesort [] = []
| bubblesort (x::xs) =bubble_select (x::(bubblesort xs))
</syntaxhighlight>
</pre>
 
=={{header|Stata}}==
23

edits