Advertisement
Guest User

Untitled

a guest
Dec 28th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1.  
  2. I want to index a multi-dimensional vector, for example
  3.  
  4. let v = [[1 2 3]
  5. [4 5 6]]
  6.  
  7. to do this currently i would need to ((v ind1) ind 2) etc... depending on the actual dimension
  8. is there a way to make it so i can just do (v ind1 ind2 ...) or is there a function that makes indexing easier?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement