Vector使用两个原始数据类型:string(元素数据)和Integer(元素计数)。
Vector USES two primitive data types — string (element data) and Integer (element count).
而后该 hash 会检查该单词;如果发现,则将计数添加到元素。
The hash is then checked for the word; if found, the count is added to the element.
现在向元素中添加计数并把值设置为2。
Now add a count to the element and set the value to 2. The rule is defined that counts the active selected elements and returns true if two elements are selected.
So I'm going to check to see if- really can't read that thing, let me do it this way-- right, I'm going to increase the number of compares, and I'm going to check to say, is the thing I'm looking for at the i'th spot in the list?
让我们这样做吧-好-,我会去增加比较次数的计数器,然后去看看在第i处的元素,是不是我要找的呢?,这里s的意思就是,给定数组的?
应用推荐