Comment rassembler un tableau en texte ?
joindre(tableau, séparateur) assemble les éléments :
mots est un tableau mots vaut ['le', 'chat', 'dort'] affiche joindre(mots, ' ') // le chat dort affiche joindre(mots, '-') // le-chat-dort
joindre(tableau, séparateur) assemble les éléments :
mots est un tableau mots vaut ['le', 'chat', 'dort'] affiche joindre(mots, ' ') // le chat dort affiche joindre(mots, '-') // le-chat-dort