MP
[{"UUID....":"value"}, .... ]
то можно здорово подзасрать память
Size: a a a
MP
MP
AR
MP
MP
AR
AR
MP
AR
ST
ДН
V0
ST
(some #(when (#{"postal"} (:type %)) %)
[{:text "123" :type "postal"}
{:text "789" :type "physical"}])
VM
VM
ST
(defn having-type
[type]
(fn [obj]
(when (= (:type obj) type) obj)))
=> #'dev.playground/having-type
(some (having-type "postal")
[{:text "123" :type "postal"}
{:text "789" :type "physical"}])
=> {:text "123", :type "postal"}
(some (having-type "physical")
[{:text "123" :type "postal"}
{:text "789" :type "physical"}])
=> {:text "789", :type "physical"}
ДН
(defn having-type
[type]
(fn [obj]
(when (= (:type obj) type) obj)))
=> #'dev.playground/having-type
(some (having-type "postal")
[{:text "123" :type "postal"}
{:text "789" :type "physical"}])
=> {:text "123", :type "postal"}
(some (having-type "physical")
[{:text "123" :type "postal"}
{:text "789" :type "physical"}])
=> {:text "789", :type "physical"}