mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
Add without-keys util function.
This commit is contained in:
parent
f7b902a7ef
commit
40bbc996f7
@ -22,6 +22,13 @@
|
|||||||
[data]
|
[data]
|
||||||
(into {} (remove (comp nil? second) data)))
|
(into {} (remove (comp nil? second) data)))
|
||||||
|
|
||||||
|
(defn without-keys
|
||||||
|
"Return a map without the keys provided
|
||||||
|
in the `keys` parameter."
|
||||||
|
[data keys]
|
||||||
|
(persistent!
|
||||||
|
(reduce #(dissoc! %1 %2) (transient data) keys)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Numbers Parsing
|
;; Numbers Parsing
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user