Re: Working with mutable objects

2011-04-13 Thread Laurent PETIT
My take: 2011/4/13 babui > I have a project in which I have to use some java mutable objects > (e.g. a graph). > > In my code, I have some functions that get these objects and add nodes > to them, for instance: > > (defn make-graph [] returns a graph wrapped with other things) > > (defn add

Working with mutable objects

2011-04-13 Thread babui
I have a project in which I have to use some java mutable objects (e.g. a graph). In my code, I have some functions that get these objects and add nodes to them, for instance: (defn make-graph [] returns a graph wrapped with other things) (defn add-to-graph [graph n] adds n to the stru