Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
m (→‎Icon and Unicon: header simplification)
Line 907: Line 907:
END</lang>
END</lang>


==Icon and Unicon==
=={{header|Icon}} and {{header|Unicon}}==

==={{header|Icon}}===
Icon/Unicon implementation of a bubble sort
Icon/Unicon implementation of a bubble sort
<lang Icon>procedure main() #: demonstrate various ways to sort a list and string
<lang Icon>procedure main() #: demonstrate various ways to sort a list and string
Line 1,005: Line 1,003:
return
return
end</lang>
end</lang>

==={{header|Unicon}}===

This Icon solution works in Unicon. A solution that uses Unicon extensions has not been provided.


=={{header|J}}==
=={{header|J}}==