Hello,
stardiviner writes:
> The original text:
>
> ,
> | We define refs the same way we define atoms, but the two are used rather
> differently.
> | Let's take a quick look at how they work below.
> |
> | (def names (ref []))
> |
> | (dosync
> | (ref-set names ["John"])
> | (alter na
The original text:
,
| We define refs the same way we define atoms, but the two are used rather
differently.
| Let's take a quick look at how they work below.
|
| (def names (ref []))
|
| (dosync
| (ref-set names ["John"])
| (alter names #(if (not-empty %)
| (conj % "J