L
Liang He
I want to pack an array such as [1,2,3,4]
to "1234", instead of \001\002\003\004, how to do that?
to "1234", instead of \001\002\003\004, how to do that?
I want to pack an array such as [1,2,3,4]
to "1234", instead of \001\002\003\004, how to do that?
x = [1,2,3,4] => [1, 2, 3, 4]
x.join('') => "1234"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.