For loop - learning

Hello,

I am new to terraform and trying to learn it. I am trying to follow below link to learn how for loop works in terraform, but find the documentation, not well explained. Can anyone give me an example of “users” variable with values for the section “Filtering Elements” and Grouping Results" in below link, so that I can trace the iteration for my understanding? Thanks in advance