Skip to content

Instantly share code, notes, and snippets.

@breuleux
Created April 1, 2014 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breuleux/9917471 to your computer and use it in GitHub Desktop.
Save breuleux/9917471 to your computer and use it in GitHub Desktop.
quicksort{match} =
{} -> {}
{p, *xs} ->
{*quicksort{l1}, p, *quicksort{l2}} where
{l1, l2} = partition{xs} with {x} -> x < p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment