mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 15:09:41 +00:00
add pre check for distinct-by-last-wins
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user