Sorting algorithms/Permutation sort: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
Added Wren
PureFox (talk | contribs)
m →‎{{header|Wren}}: Removed duplicated lines.
Line 2,259:
return false
}
 
System.print("Unsorted: %(a)")
var count = a.count
if (count > 1 && !recurse.call(count-1)) Fiber.abort("Sorted permutation not found!")
System.print("Sorted : %(a)")
 
System.print("Unsorted: %(a)")