setMap

Returns a new set of the values returned by the callback for each element. Duplicate results are removed.

setMap(set, callback) → returns any

Member Function Syntax

mySet.map(callback)

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

set any
Required

The set.

callback function
Required

Function that receives each element and returns the new value.

Links more information about setMap

Examples
Sample code invoking the setMap function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub