Skip to content

Instantly share code, notes, and snippets.

@DanielVartanov
Created October 25, 2011 02:06
Show Gist options
  • Save DanielVartanov/1311101 to your computer and use it in GitHub Desktop.
Save DanielVartanov/1311101 to your computer and use it in GitHub Desktop.
qsort([Threshold | Tail]) ->
{ Left, Right } = split(Threshold, Tail),
qsort(Left) ++ [Threshold] ++ qsort(Right)
;
qsort([]) -> [].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment