(parse-ns k)

Example

Get the namespace from a symbol
(parse-ns 'my.namespace/asdf)

Source

(defn parse-ns [k] (try (symbol (namespace k)) (catch Exception _)))