(defn largest-common-prefix "Returns the largest common prefix of two strings." ([#^String a, #^String b] (apply str (take-while (comp not nil?) (map #(when (= %1 %2) %1) a b)))) {:tag String})
Comments top
No comments for largest-common-prefix. Log in to add a comment.