Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
(J style solution)
Line 571: Line 571:
<lang J>
<lang J>
bubbleSort=: (([ (>. , <.) {.@]) , }.@])/^:_
bubbleSort=: (([ (>. , <.) {.@]) , }.@])/^:_
)</lang>
</lang>


Test program:
Test program: