Sorting algorithms/Bogosort: Difference between revisions

Content added Content deleted
Line 414: Line 414:
END PROGRAM BOGOSORT</lang>
END PROGRAM BOGOSORT</lang>


=={{header|Haskell}}==
=={{header|Groovy}}==
Solution (also implicitly tracks the number of shuffles required):
Solution (also implicitly tracks the number of shuffles required):
<lang groovy>def bogosort = { list ->
<lang groovy>def bogosort = { list ->