setRetainAll

Keeps only the elements of the target set that are also in the source set. Returns true if the target set changed.

setRetainAll(set, values) → returns boolean

Member Function Syntax

mySet.retainAll(values)

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

Argument Reference

set any
Required

The set to change.

values any
Required

The set of elements to keep.

Links more information about setRetainAll

Examples
Sample code invoking the setRetainAll function

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

Fork me on GitHub