Ad

Python array select one of item and repeat it for selected ranges.
It's maded for some interesting things like evolution no anymore

Example:



<span class "cm-comment"># Create simple array with numbers
array =[0, 10, 20, 13]
<span class "cm-comment"># Call our function
spawn_to_range(array, 13, 4)
<span class "cm-comment">#=> Must be returned a [0, 10, 20, 13, 13, 13, 13]

def spawn_to_range(arr, val, ran):
  return