ary.join(separator=$,) â str
Instance Public methods
Returns a string created by converting each element of the array to a
string, separated by the given separator
. If the
separator
is nil
, it uses current $,. If both the
separator
and $, are nil, it uses empty string.
1 2 | [ "a" , "b" , "c" ].join #=> "abc" [ "a" , "b" , "c" ].join( "-" ) #=> "a-b-c" |
Please login to continue.