Comecei a brincar de CodeWars e gostei muito. Um puzzle melhor que wordle para fazer todos os dias rs
Bora fazer juntos?
Cada um na sua linguagem.
Escreva uma funcao que separe uma string e a converta em uma array de palavras.
Exemplo:
"Robin Singh" ==> ["Robin", "Singh"]
Voce tem essas linhas pra comecar:
function stringToArray(string){
}
Petition to stop short naming variables
ie.. `str`, please just say `string` lol.
I prefer for you to say `stringToArray` rather than `strToArr`
getFirstLetterFromAnInput is better than getFnFromInput thanking y'all in advance.
Query for cool pico8 devs; Is there a more token efficient way of writing this?
e=stringToArray"[60 ordered values]"
for i=1,len(e),10 do
sspr(e[i],e[i 1],e[i 2],e[i 3],e[i 4],e[i 5],e[i 6],e[i 7],e[i 8],e[i 9])
end