Search the Community
Showing results for tags 'array'.
There is an annoying SMS bug when reloading project source which contains "]]" strings like in "edges[Vertices[i]].length" after reloading, all "]]" in the source code have been replaced by spaces : now reads like "edges[Vertices[i .length" workaround is to add a space myself : edges[Vertices[i] ].length Note: even submitting this post has its problems, the double "]" tokens get garbled after posting, only works after formatting as code
Some data structures, derived directly from TObject : TSet "A data type that can store values without any particular order and no double ups" (wikipedia) demo code methods Procedure Add(Item: Variant); Procedure Remove(Item: Variant); Function Contains(Item: Variant): Variant; Function Union(Set: TSet): TSet; Function Intersect(Set: TSet): TSet; Function Difference(Set: TSet): TSet; TStack (LIFO) "A collection of elements. Push adds an element to the collection and pop removes the most recent added element. Alternatively called LI