Skip to end of banner
Go to start of banner

arrayToSet

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available since katl-commons 2.5.7.

Syntax:

arrayToSet(arrayName)

Description:

Converts an array to a set of (unique) elements.

Alias:

arrayToSet(arrayName)

Parameters:

Parameter name

Type

Required

Description

arrayName

array

Yes

The array to be converted to a set of elements.

Return Type:

array

Example:

watchers = arrayToSet(watchers);

The result returned by the routine is an array which contains the elements from watchers without duplicates.

 

See Also:

  • No labels