Sign in Join
FPDoc Onlineexperiment

TFPGList.Remove function

Member of TFPGListpublicIn unit fgl

Remove an item from the list.

Declaration

pascal
function Remove(const Item: T): Integer

Arguments

Item

Item to remove from the list.

Function result

Index of the removed item.

Description

Remove removes the item Item from the list, and returns the index of the removed item. If no item was removed, -1 is returned. Only the first item is removed.

Errors

None.

See also

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