Guest User

Untitled

a guest
Nov 26th, 2018
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn optimize-polygon [p]
  2.     (let [prev (concat [(last p)] (drop-last p))
  3.           next (concat (rest p) [(first p)])]
  4.           (filter (comp not on-straight-line) prev p next)))
Add Comment
Please, Sign In to add comment