add pre check for distinct-by-last-wins

This commit is contained in:
rcmerci
2022-12-26 15:44:50 +08:00
parent 1790223ed6
commit b4a5589857

View File

@@ -481,9 +481,8 @@
#?(:cljs
(defn distinct-by-last-wins
[f col]
(if (sequential? col)
(reverse (distinct-by f (reverse col)))
(distinct-by f col))))
{:pre [(sequential? col)]}
(reverse (distinct-by f (reverse col)))))
(defn get-git-owner-and-repo
[repo-url]