@rimbu/commonTraverseStateOn this pageinterface TraverseStateAn object used to track the state of a traversal, e.g. a forEach.PropertiescurrentIndexReturns the current index of the traversal.Definitionreadonly currentIndex: number;haltedReturns true if the traversal has been halted by the user.Definitionreadonly halted: boolean;MethodshaltSets the halted value to true.Definitionhalt(): void;nextIndexReturns the next index that the traversal should useDefinitionnextIndex(): number;resetSets the halted value to false, and resets the currentIndex value to its start value.Definitionreset(): void;