Jump to content

Sorting algorithms/Pancake sort: Difference between revisions

m
→‎{{header|Wren}}: Swapping of list elements is now built in.
m (→‎{{header|Wren}}: Swapping of list elements is now built in.)
Line 4,006:
flip(r) {
for (l in 0...r) {
var t = _a[.swap(r], l)
_a[r] = _a[l]
_a[l] = t
r = r - 1
}
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.