Sign in Join
FPDoc Onlineexperiment

Deduplicate function

In unit LookupStringList

Removes duplicate strings in the AStrings argument.

Declaration

pascal
function Deduplicate(AStrings: TStrings): Integer

Arguments

AStrings

TStrings instance examined in the function.

Function result

The number of duplicates removed from AStrings.

Description

Removes duplicate strings (with case sensitivity) from AStrings. Deduplicate creates a TLookupStringList instance that is used to remove the duplicate values in AStrings.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.