Hi, the macro only works with the vector itself, because otherwise it only sees the symbol, but not the vector. What you want is a doseq loop.
(defn add-elements
[model elements]
(doseq [elem elements]
(.addElement model elem)))
Then you can do:
(doto (DefaultListModel.)
(add-elements ["Item 1" "Item 2" "Item 3"]))
Hope this helps.
Sincerely
Meikel
smime.p7s
Description: S/MIME cryptographic signature
