Split char from word

help please

i have an array arr = [AAAAA]
i need to split it to arr = [A,A,A,A,A]

i tried the split method put it does not work

Iā€™m not sure I understand your question. Do you mean you are starting with a string, and want to split it into an array of characters?

julia> s = "AAAAAA"
"AAAAAA"

julia> collect(s)
6-element Array{Char,1}:
 'A'
 'A'
 'A'
 'A'
 'A'
 'A'
5 Likes

If you want your result to be Strings instead of Characters then split("AAA", "")

2 Likes