4,577
edits
m (Text replacement - "Category:Dyalog APL" to "Category:Dyalog APL examples") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(One intermediate revision by the same user not shown) | |||
Line 35: | Line 35: | ||
== Code == | == Code == | ||
< | <syntaxhighlight lang="apl"> | ||
ConvexHull←{ | ConvexHull←{ | ||
⍝ ⍵: matrix (2 rows) of points - first row:abscissae second row:ordinates | ⍝ ⍵: matrix (2 rows) of points - first row:abscissae second row:ordinates | ||
Line 64: | Line 64: | ||
(⊂ixHull)⌷[1]pts | (⊂ixHull)⌷[1]pts | ||
} | } | ||
</ | </syntaxhighlight> | ||
[[Category:Examples]][[Category:Dyalog APL examples]] | [[Category:Examples]][[Category:Dyalog APL examples]] |