Fork me on GitHub
#specter
<
2016-11-29
>
zane15:11:52

Out of curiosity, why is there no MAP-KEYS?

nathanmarz15:11:56

@zane never had a need for it

nathanmarz16:11:15

you can make an inefficient one like this: (def MAP-KEYS (comp-paths ALL FIRST))

zane17:11:04

Huh. I might be misunderstanding what's happening here, but ALL seems to behave strangely on records.

zane20:11:23

Is this user error?

(defrecord Test [])
(transform [specter/ALL] identity (->Test))
;; => UnsupportedOperationException Can't create empty: test-ns.Test 

nathanmarz20:11:52

ALL works on vectors, maps, lists, queues

zane21:11:49

Okay. Thanks, Nathan.