What's the simplest way to create a vector of distinct refs?
Using (repeat 5 (ref nil))
will return a list, but they will all reference the same ref:
user=> (repeat 5 (ref nil))
(#<Ref@16ef71: nil> #<Ref@16ef71: nil> #<Ref@16ef71: nil> #<Ref@16ef71: nil> #<R
ef@16ef71: nil>)
Same result with (replicate 5 (ref nil))
:
user=> (replicate 5 (ref nil))
(#<Ref@1d88db7: nil> #<Ref@1d88db7: nil> #<Ref@1d88db7: nil> #<Ref@1d88db7: nil>
#<Ref@1d88db7: nil>)