INSPECT
http://mcchae.egloos.com/m/11249290 https://pymotw.com/2/cgitb/
Introduction to HashesWe know that arrays are indexed with numbers that start with 0 and go up to the array's length minus one. (Think about it: an array with four elements has the indices 0, 1, 2, and 3.)But what if we want to use numeric indices that don't go in order from 0 to the end of the array? What if we don't want to use numbers as indices at all? We'll need a new array structure called..
Next!The next keyword can be used to skip over certain steps in the loop. For instance, if we don't want to print out the even numbers, we can write:for i in 1..5 next if i % 2 == 0 print i end In the above example, we loop through the range of 1 through 5, assigning each number to i in turn.If the remainder of i / 2is zero, we go to the next iteration of the loop.Then we print the value of i. T..