Sorting algorithms/Bubble sort: Difference between revisions

m
→‎{{header|R}}: Syntax highlighting.
m (→‎{{header|JavaScript}}: (Pruning redundant whitespace))
m (→‎{{header|R}}: Syntax highlighting.)
Line 5,020:
=={{header|R}}==
The previously solution missed out on a cool R trick for swapping items and had no check for lists of length 1. As R is 1-indexed, we have aimed to be as faithful as we can to the given pseudo-code.
<lang rrsplus>bubbleSort<-function(items)
{
repeat
331

edits