Sorting algorithms/Bubble sort: Difference between revisions
Content added Content deleted
ReeceGoding (talk | contribs) m (→{{header|R}}: Syntax improvement.) |
ReeceGoding (talk | contribs) m (→{{header|R}}) |
||
Line 5,040: | Line 5,040: | ||
} |
} |
||
#Examples taken from the Haxe solution. |
#Examples taken from the Haxe solution. |
||
ints<-c(1, 10, 2, 5, -1, 5, -19, 4, 23, 0) |
ints <- c(1, 10, 2, 5, -1, 5, -19, 4, 23, 0) |
||
numerics<-c(1, -3.2, 5.2, 10.8, -5.7, 7.3, 3.5, 0, -4.1, -9.5) |
numerics <- c(1, -3.2, 5.2, 10.8, -5.7, 7.3, 3.5, 0, -4.1, -9.5) |
||
strings<-c("We", "hold", "these", "truths", "to", "be", "self-evident", "that", "all", "men", "are", "created", "equal")</lang> |
strings <- c("We", "hold", "these", "truths", "to", "be", "self-evident", "that", "all", "men", "are", "created", "equal")</lang> |
||
{{out}} |
{{out}} |