title: Accessing element from reference array in F#
body: <p>Was experimenting with arrays and references - my intent is to create a reference to an array and then use that reference inside a closure to access a certain element of the array. FSI attempt:</p>
  
  <pre><code>&gt; let dk2 = Array.create 5 0
  let dk2ref = ref dk2;;
  
  val dk2 : int [] = [|0; 0; 0; 0; 0|]
  val dk2ref : int [] ref = {contents = [|0; 0; 0; 0; 0|];}
  
  &gt; !dk2ref.[1]
  
  stdin(3,2): error FS0039: The field, constructor or member 'Item' is not defined
  </code></pre>
  
  <p>Is there a direct way to access the element of a referenced array? (In this case, the 2nd element of dk2ref)?</p>