Sorting algorithms/Bogosort: Difference between revisions

(Nimrod -> Nim)
Line 542:
io.put_string ("Unsorted: ")
across test as t loop io.put_string (t.item.out + " ") end
create testresult.make_empty
create sorter
testresulttest:= sorter.bogo_sort (test)
io.put_string ("%NSorted: ")
across testresulttest as t loop io.put_string (t.item.out + " ") end
end
test: ARRAY[INTEGER]
testresult: ARRAY[INTEGER]
sorter: BOGO_SORT
end
Anonymous user