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
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'
If you want your result to be String
s instead of Characters then split("AAA", "")