Convex hull: Difference between revisions

Line 6,339:
 
 
Footnote: My Mercury implementation originally had a "fold" in it, the way this Scheme program does, but that got lost during debugging. (The bug turned out to be elsewhere.) The fold and inner loop became one loop that I think is easier to understand, if not as "tight". However, here I wanted to show it could be done with a fold.
 
=={{header|Sidef}}==
1,448

edits