I have just realized that
x =5
array[x]
won't work...

I see two possible workarounds:

   1. If the symbol has nothing to do with the structure you are operating 
   with, you eval that symbol.
   2. You use @generated setindex(..)  instead and if you want to access 
   the great features like collection[first] colleaction[last], you will have 
   to do this instead: 
   collection[:first]
   collection[:last]

I guess the second option is better, and it might already work ( I can't 
check since julia box throws error whenever I use @generated)... 

Reply via email to