I am creating a simple swing GUI in Clojure. I am trying to apply a single function to several GUI components using a map in a let context:
(map #(f % component4) [component1 component2 component3])
Where all components are defined in let.
Problemically, the card is lazy, and the action does not apply to the components, however I can force it by wrapping the above in "take".
Is there an alternative card for lazy cards? Or should I go about it differently?
EDIT: Use counterclockwise in an eclipse. I had different results using (use "Lib: reload") from REPL and using CTRL + Enter from the editor. Rebooting launches the GUI, but the problem described above will occur. The problem did not occur when using CTRL + Enter from the editor, so I think my description of the problem may be inaccurate. Regardless of the fact that the dose is the best alternative map in this scenario.
source share