Replies: 3 comments 2 replies
-
Estendo minha proposta para aceitar duas formas:
Ou
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Para iterar chave e valor, eu faria assim:
Ou
|
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Seguindo a ideia do usuário JohnPetros no canal do Discord, poderíamos implementar novas formas de percorrer uma lista, assim como temos no
JavaScript
.No
js
temosfor .. in
efor .. of
Algumas sugestões:
para (var item de meu_vetor) { ... }
@samuelrvgpara cada elemento em meu_vetor { ... }
@leonelsanchesdasilvaBeta Was this translation helpful? Give feedback.
All reactions