(def v [o1 o2 o3 o4 o5])
Each o them has a method "connect", which gets another object as a parameter.
Manually I would now:
What would be a good approach to automate this?
only some weird solutions come to my mind: as:
(doseq [[a b] (zipmap (butlast v) (rest v))]
(.connect a b))
is there a better way?