次のデータ構造があります。
{:file #<File /foo.bar>, :resolution {:width 1280, :height 1024}}
:resolution
キーをwidth
シンボルheight
に分解する関数を書きたいと思います。何かのようなもの
(defn to-directory-name [{{:keys [width height]}} wallpaper]
(str width "x" height))
破壊でそのようなことは可能ですか?
ありがとう。