join() Operation
Concatenates all string in an array and separates them by a separator.
Syntax  | 
  | |
|---|---|---|
Semantics  | Concatenates all strings in  This is a convenience operation that can be used instead of   | |
Substitutables  | 
  | An Array of String elements.  | 
  | A separator of type String.  | |
Examples  | Join elements of an array of String Input: an array of names 
        JSON
     
    
        CODE
     
    
Result: result is “Irene | Eliza | Raymond | Jane | David".  | |
Join string elements of a complex array using a helper array Input: an array of complex articles 
        JSON
     
    
        CODE
     
    
Result: 
        JSON
     
    
result is “AF-1200, CD-2004, RC-0002, CD-2002”.  | ||
Related Content
Related Pages:
reduce Statement
Reduces an array to a scalar value by recursively applying an expression to each array element and its next element.