When you are not interested in some values returned by a function we use underscore in place of variable name . Basically we don't care about the iterator value, just that it should run some specific number of times.