listMap
11
4

Overview ColdFusion Open BlueDragon Lucee

Map function that iterates over each entries of the List and calls the closure function to work on the item of the list. The returned value will be set at the same index in a new list and the new list will be returned

Attributes

Name Required Type Default Description
4
closure No filter can be a function/closure that implements the following constructor [function(any value, number index, string list, string delimiter):any].
11
4
delimiter No String List delimiter
11
function Yes Function Closure or a function reference that will called for each of the iteration. The arguments passed to the callback areitem: value. Requiredindex : current index for the iteration. Optionallist : reference of the original list. Optional
4
includeEmptyFields No include empty fields or not
11
includeEmptyValues No Boolean Set to yes to include empty values
11
4
list Yes List Input List
4
maxThreads No maximum number of threads executed, ignored when argument "parallel" is set to false
4
multiCharacterDelimiter No specifying whether the delimiters parameter specifies a multi-character delimiter. If this parameter is true, the delimiters parameter must specify a single delimiter consisting of multiple characters. This parameter enables the ListToArray function to convert a list such as the following to an array of color names: red:|orange:|yellow:|green:|blue:|indigo:|violet.
4
parallel No execute closures parallel