I have an array:
array1 = [1,2,3,4,5,:value => 'value']
I want to create second array, who is the copy of first array minus :value element (addition: i don't know position of element exactly)
#expected result
array1 = [1,2,3,4,5,:value => 'value']
array2 = [1,2,3,4,5]
#my failure attempt
array2 = array1.delete(:value) # => nil
How can i do this?