segmentP geomland.segment? :x outputs "true if :x is a segment, else outputs false. Definition:
to geomland.segment? :x output "segment = type :x end