julia> pairs("François") |> collect
8-element Vector{Pair{Int64, Char}}:
1 => 'F'
2 => 'r'
3 => 'a'
4 => 'n'
5 => 'ç'
7 => 'o'
8 => 'i'
9 => 's'
Notice the missing index 6, because ç takes two bytes.In contrast, enumerate() gets you the iteration number:
julia> enumerate("François") |> collect
8-element Vector{Tuple{Int64, Char}}:
(1, 'F')
(2, 'r')
(3, 'a')
(4, 'n')
(5, 'ç')
(6, 'o')
(7, 'i')
(8, 's')
This can trip you up.