title: How can i get a permutation given indexes?
body: <p>I've got a list of objects:</p>
  
  <pre><code>array = [object0,object1,object2,object3,object4]
  </code></pre>
  
  <p>and i want to change the order of the items given a permutation:</p>
  
  <pre><code>permutation = [ 2 , 4 , 0 , 1 , 3 ]
  </code></pre>
  
  <p>Is there a command in python that will do something like:</p>
  
  <pre><code>result = Permute(array,permutation)
  
  result = [object2,object4,object0,object1,object3]
  </code></pre>
  
  <p>I know i can do it with a simple <code>for</code> loop.... </p>