News for hackers. Stuff that matters.
Re:Three Beautiful Quicksorts by kobs on Thursday July 10, 2008 @11:18PM (#243196)
Nearly identical implementation in Erlang:

  qsort([]) -> [];

  qsort([Pivot|Rest]) ->
    qsort([ X || X <- Rest, X < Pivot]) 
    ++ [Pivot] ++ 
    qsort([ X || X <- Rest, X >= Pivot]).
More: http://en.literateprograms.org/Category:Quicksort

There are no comments on this comment yet.