ListUtils

class Varwin.ListUtils

Bases: object

Provides functions for working with lists.

static FirstIndex(list: List[Any], item: Any) Any

Returns the index of the first occurrence of the first text in the second text. Returns 0 if text is not found.

Example:

result = Varwin.ListUtils.FirstIndex([sceneObject, Varwin.Vector3(1,1,1)], "test")
static LastIndex(list: List[Any], item: Any) Any

Returns the index of the last occurrence of the first text in the second text. Returns 0 if text is not found.

Example:

result = Varwin.ListUtils.LastIndex([sceneObject, Varwin.Vector3(1,1,1)], "test")