Fork me on GitHub
#specter
<
2021-10-07
>
Quentin Le Guennec09:10:15

Hello, for some reason this doesn't work in specter:

(sp/select-one
 [sp/FIRST
  key]
 {:a :b}) => [:a :b]
Is there specter equivalent of clojure.core key / val?

Joshua Suskalo16:10:27

you could use (view first)

Joshua Suskalo16:10:58

Although I'm curious what your intention is for using FIRST on a map.

Joshua Suskalo16:10:08

Since maps are usually not in a predictable order.