在下面的结构中,我知道如何迭代:whatever的所有子级的:whatever值
=> (specter/select
[:whatever specter/MAP-VALS :x]
{:whatever {:a {:x 1} :b {:x 2}}})
[1 2]不过,我想得到的是下面这样的东西,其中包含了野生卡片的地图键。
[[:a 1] [:b 2]]如何对付幽灵呢?
发布于 2018-06-21 03:38:38
(select
[:whatever ALL (collect-one FIRST) LAST :x]
{:whatever {:a {:x 1}
:b {:x 2}
:c {:x 55}}})
=> [[:a 1] [:b 2] [:c 55]]https://stackoverflow.com/questions/50959074
复制相似问题