除非我弄错了,看起来&模式与:as模式之间存在一些交互问题
(match (link: [:bar :baz])
(link: ([:bar & r) :as m]) m)
-> (link: :bar)
我期望在这里看到(link: :bar :baz)
这 Exactly是我预期的
(match (link: [:bar :baz])
(link: [:bar & r)] :a)
-> :a
这也正如我所预期的
(match (link: [:bar :baz])
(link: ([:bar :baz) :as m]) m)
-> (link: :bar :baz)
所以&和:as各自独立工作。