You are here: Symbol Reference > MtxParseClass Namespace > Classes > TWordList Class > public > TWordList.Add Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TWordList.Add Method

Adds and item maintains the sorting order

Pascal
function Add(const Item: TExprWord): integer;

Finds the position where to insert and potentially also removes existing item and replaces. The bisection based search is faster than linear, but when adding large amounts of Item use the AddUnsorted overload and sort explicitely after the adding.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!