Hello META RUBY,
Can somebody please explain the following lines:
if counts[counts_idx][0] == letter
counts[counts_idx][1] += 1
I actually don’t understand the notation:
counts[counts_idx][0]
I understand this part - counts[counts_idx]
- which refers to a an element in the array counts at the location [counts_idx]
but I don’t get the [0]
or [1]
at the end.
Thank you,
V/r,
MC