jointext
 jointext | 
   
  Purpose
 
 
 Merge elements of a list or set into a text string.
 
 
  Synopsis
 
 function jointext(ls:list|set):text
 function jointext(ls:list|set, mxe:integer):text
 function jointext(ls:list|set, sep:string):text
 function jointext(ls:list|set, sep:string, mxe:integer):text
 
  Arguments
 
 | 
     
     ls 
       | 
   
     
     List or set to use as input
       | 
  
| 
     
     sep 
       | 
   
     
     Separator string (default:
     ',')
       | 
  
| 
     
     mxe 
       | 
   
     
     Maximum number of elements to merge (default:
     0 for no limit)
       | 
  
  Return value
 
 
 A text string consisting of the concatenation of set or list elements.
 
  Further information
 
 
 1. This function concatenates the elements of an input list or set to produce a text string. Items are separated by the provided separator string that may be an empty string.
 
 
 2. The argument
 mxe may be used to specify a maximum number of elements to process (the remaining portion of the input data is ignored). If this limit is negative then the elements are taken from the end of the collection (
 e.g. with
 -3 the last 3 elements of the collection are used), otherwise elements are taken from the beginning.
 
 
  Related topics
 
  
  Module
 
 
