space >>-space-+---------------+------------------------------------->< +-(n-+------+-)-+ +-,pad-+ Returns a copy of receiving string, with
[n]
[pad]
characters between each whitespace-delimited word. If you specify
[n]
, it must
be a positive whole number or zero. If it is
String class - space method "abc def "~space -> "abc def" " abc def"~space(3) -> "abc def" "abc def "~space(1) -> "abc def" "abc def "~space(0) -> "abcdef" "abc def "~space(2,"+") -> "abc++def" |