Fork me on GitHub
#clara
<
2016-07-22
>
mikerod11:07:43

mattdarling in case you like the “syntax sugar” of it you can also use destructuring in rule conditions the same way you’d use it in the arglist of a fn

mikerod11:07:11

[:my-type-thing [{:keys [x y z]}] (< x 10) (= ?y y)]

mikerod11:07:35

so that just destructures the map as normal in clj and then you have “direct access” to “fields” x y z

mikerod11:07:55

it’s just syntax sugar though really. performs the same as destructuring