Instantly share code, notes, and snippets.

Embed
What would you like to do?
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