I have an array like:
array = [:a, b: [:c, :d]]
=> [:a, {:b=>[:c, :d]}]
when i was tried array[:b] i got this error:
TypeError (no implicit conversion of Symbol into Integer)
how can I get :b element from this array?
Note: I don't want to use index to do that (array[1]).
:bkey?