Sorting algorithms/Comb sort: Difference between revisions

m
→‎Icon and Unicon: header simplification
(add Ada)
m (→‎Icon and Unicon: header simplification)
Line 483:
lst combSortInPlace println # ==> list(12, 14, 23, 24, 24, 31, 35, 38, 46, 51, 57, 57, 58, 76, 78, 89, 92, 95, 97, 99)</lang>
 
== {{header|Icon}} and {{header|Unicon }}==
==={{header|Icon}}===
<lang Icon>procedure main() #: demonstrate various ways to sort a list and string
demosort(combsort,[3, 14, 1, 5, 9, 2, 6, 3],"qwerty")
Line 516 ⟶ 515:
on string : "qwerty"
with op = &null: "eqrtwy" (0 ms)</pre>
 
==={{header|Unicon}}===
The Icon solution works in Unicon.
 
=={{header|J}}==
Anonymous user