Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
(J style solution) |
m (→{{header|J}}) |
||
Line 571: | Line 571: | ||
<lang J> |
<lang J> |
||
bubbleSort=: (([ (>. , <.) {.@]) , }.@])/^:_ |
bubbleSort=: (([ (>. , <.) {.@]) , }.@])/^:_ |
||
</lang> |
|||
Test program: |
Test program: |