I get java.lang.IllegalArgumentException: No value supplied for key:in my Clojure code.
I know this happens when I try to destroy keys in a mapping passed as an argument.
However, what is strange here is that this function works perfectly for centuries, with the same data. And the only thing that seems different is how I import the function now
Here's the error:
Caused by: java.lang.IllegalArgumentException: No value supplied for key:
{:style {:color [255 150 150 255], :stroke-weight 2}, :points [[-1 0] [0 -1] [1 0] [0 1] [-1 0]]}
And here is the function that left him.
(defn scale
[val {:keys [style points]}]
{:style style
:points (scale-shape val points)})
In other words, I ask that the card contains keys called styleand points, and she is given a card containing keys called styleand points.
And this code works fine for several months.
, sshapes/scale, sshapes :
(:require [patterning.sshapes :as sshapes])
scale, ,
(:require [patterning.sshapes :refer :all])
โโ?