Exercise 9.1


(Polygon pts) `containsS` p 
    = let leftOfList = map isLeftOfp
                       (zip pts (tail pts ++ [head pts]))
          isLeftOfp = isLeftOf p
      in and leftOfList

Leave a Reply

Your email address will not be published. Required fields are marked *