(end? loc)
Returns true if loc represents the end of a depth-first walk
(defn end? [loc] (= :end (loc 1)))