pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
2021-04-18T21:40:23.176300Z

is there any magic way to extract a value from the map returned by eql if there is only one kv?

(-> (p.eql/process env {:db/id 1} [:name]) :name)
this way seems horribly suboptimal

souenzzo 2021-04-19T12:49:06.200500Z

(let [{:keys [name]} (p.eql/process env {:db/id 1} [:name])]
  name)

👍 1
2021-04-18T21:41:14.176500Z

when pulling one thing out, creating a smartmap seems even worse