Noud
Member since Dec 19, 2010
- Profile: /members/7462-noud.htm
- Comments: 1
Recent Blog Comments By Noud
-
Seven Languages In Seven Weeks: Prolog - Day 2
Posted on Dec 19, 2010 at 8:52 AM
Hi, I tried to program quicksort. It's not really that hard since quicksort can be defined purely recursive. Here is my code. partition(Pivot, [], [], []). partition(Pivot, [Head|Tail], [Head|Left], Right) :- Head =< Pivot, partition(Pivot, Tail, Left, Right). partition(Pivor, [Head|Tail], ... read more »