M
mahurshi
i have a hash that's populated with some keys/values
i did some calculations (logic simulations) and and set the values.
now i want to set all the values to "-1" (the keys remain the same)
so that i can simulate my circuit with a totally new input vector and
recalculate the values of different nets and fill up the hash again.
right now, i am doing this by going thru all the keys in the hash and
setting each value to -1 (i.e. right now i have a way to work it out)
just curious.. is there a simpler/better way to do this ? (like in just
1 line or something)
i did some calculations (logic simulations) and and set the values.
now i want to set all the values to "-1" (the keys remain the same)
so that i can simulate my circuit with a totally new input vector and
recalculate the values of different nets and fill up the hash again.
right now, i am doing this by going thru all the keys in the hash and
setting each value to -1 (i.e. right now i have a way to work it out)
just curious.. is there a simpler/better way to do this ? (like in just
1 line or something)