Difference between revisions of "Array.injoin()"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 5: Line 5:
 
==Array.injoin(JoinWith)==
 
==Array.injoin(JoinWith)==
 
A string with all array elements joined starting from second element.If separator is an empty string, all elements are joined without any characters in between them.
 
A string with all array elements joined starting from second element.If separator is an empty string, all elements are joined without any characters in between them.
 +
 +
 
['air','fire','water','land','sky'].injoin('#')
 
['air','fire','water','land','sky'].injoin('#')
  

Latest revision as of 02:28, 8 May 2020

Array.injoin(JoinWith)

A string with all array elements joined starting from second element.If separator is an empty string, all elements are joined without any characters in between them.


['air','fire','water','land','sky'].injoin('#')

airfire#water#land#sky


1..10.injoin('!!!!')

12!!!!3!!!!4!!!!5!!!!6!!!!7!!!!8!!!!9!!!!10

30..40.injoin()

3031323334353637383940

See Also

joinwith