값의 1-d 벡터가 있습니다. 쉼표로 구분 된 값으로 문자열로 변환하고 싶습니다. Julia에게이 작업을 수행하는 쉬운 방법이 있습니까? r
줄리아의 쉼표로 구분 된 문자열로 벡터 축소
{julia}
julia> x = [24,122,63,24,83,56,54,175,11,11,24,51,85,92,74,500,80,127,126,59,111,155,132,202,64,164,1301]
#I want output like this as a string
#24,122,63,24,83,56,54,175,11,11,24,51,85,92,74,500,80,127,126,59,111,155,132,202,64,164,1301,27
#I have tried something like this
[julia> [print(i,",") for i in x]
24,122,63,24,83,56,54,175,11,11,24,51,85,92,74,500,80,127,126,59,111,155,132,202,64,164,1301,27-element Array{Void,1}:
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
nothing
'join (map (string, x), ',')'내가 원했던 것입니다. 감사합니다. – PoisonAlien
@PoisonAlien -'map'이 필요하지 않은 것처럼 보입니다. 여러분은''(x, ',')'직접 참여할 수 있습니다. – TigerhawkT3