Jump to content

Sorting algorithms/Bubble sort: Difference between revisions

m
m (→‎{{header|Icon and Unicon}}: Don't use header like this)
m (→‎{{header|Icon}}: typo fix)
Line 657:
 
==={{header|Icon}}===
 
While bubble sort is a basic algorithm it also illustrates a difference in the way Icon handles types. Built-in
operators for comparing data types make a syntactic distinction between numeric and string types, and sorting
Line 707 ⟶ 706:
 
procedure cmp(a,b)
return a > b # Imagine a complex comparsioncomparison test here!
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.