specter

Quentin Le Guennec 2021-10-07T09:21:15.046500Z

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?

2021-10-07T16:22:27.047Z

you could use (view first)

2021-10-07T16:22:58.047400Z

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

2021-10-07T16:23:08.047700Z

Since maps are usually not in a predictable order.