Indeed the one-element vector case was what inspired my wrapper. I created the wrapper to avoid the run-time bounds check on the vector, though I suppose I could sprinkle @inbounds to eliminate it.
On Mon, Jun 13, 2016 at 6:40 PM, Eric Forgy <[email protected]> wrote: > Not sure if this is the best way (curious about 'Ref'), but you could also > make x a 1-element vector: > > const x = [0] > > x[1] += 1 >
