5 ms·
In case anybody is interested, this is how you would do this in clojure: (println (some-> article :author :address :city upper-case))
by qwtel 11y ago
In case anybody is interested, this is how you would do this in clojure:
(println (some-> article :author :address :city upper-case))
- finishingmove 11y agoThanks, I'm learning Clojure and things like this make me all warm and fuzzy inside :)
- ubercow 11y agoI didn't know about some->, that would have been handy recently. Cheers.
- sandisk5 11y ago(some-> article :author :address :city upper-case println) So that you don't print nil if some-> returns nil.