I want to define a struct for chores
(defstruct chore name sector assignments)
where the assignments
slot is a vector with seven positions. I know that the above syntax will generate the getters chore-name
, chore-sector
and chore-assignments
. But I would like to have something like this (chore-assignment 1 c)
. Is there any syntax that will give me this “for free” or should I code the function myself?