Sign in Join
FPDoc Onlineexperiment

TFPHashList.Extract function

Member of TFPHashListpublicIn unit Contnrs

Extract a pointer from the list.

Declaration

pascal
function Extract(item: Pointer): Pointer

Arguments

item

Pointer to be removed.

Function result

The removed pointer or nil.

Description

Extract removes the data item from the list, if it is in the list. It returns the pointer if it was removed from the list, Nil otherwise.

Extract does a linear search, and is not very efficient.

See also

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