Home > Mobile >  How to join array into string in Julia
How to join array into string in Julia

Time:06-04

How can I join [5, 'N', 'K', 'r', 9, 'j', 'K', '(', 'E', 't'] into making it a single string like this "5NKr9jK(Et"

CodePudding user response:

Just join it :):

julia> join([5, 'N', 'K', 'r', 9, 'j', 'K', '(', 'E', 't'])
"5NKr9jK(Et"

The individual elements of the vector are converted to string using the print function.

  • Related