AR
Size: a a a
AR
AR
T
ДН
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
ST
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
ST
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
ДН
ST
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
(or
(->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text)))
ST
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
->>
можно записать как some->>
ДН
(or
(->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text)))
ST
ST
IG
ДН
IG
ST
AI
(assoc result :address
(if-let
[physical (->>
(get-in value [:organization :resource :address])
(some #(when (#{"physical"} (:type %)) %))
(:text))]
physical
(->> (get-in value [:organization :resource :address])
(some #(when (#{"postal"} (:type %)) %))
(:text))))
(let [m (group-by (comp keyword :type)
(get-in value [:organization :resource :address]))]
(-> (or (:physical m) (:postal m)) first :text))
AI
ДН
(let [m (group-by (comp keyword :type)
(get-in value [:organization :resource :address]))]
(-> (or (:physical m) (:postal m)) first :text))
AI
(if-let [хрень (калкулэйтед-хрень)] хрень другая-хрень) =>
(or (калкулэйтед-хрень) другая-хрень)