MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / nxt

Method nxt

brainworkshop.py:1905–1907  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1903 if val in self.values:
1904 self.i = self.values.index(val)
1905 def nxt(self): # not named "next" to prevent using a Cycler as an iterator, which would hang
1906 self.i = (self.i + 1) % len(self.values)
1907 return self.value()
1908 def value(self):
1909 return self.values[self.i]
1910 def __str__(self):

Callers 1

selectMethod · 0.80

Calls 1

valueMethod · 0.95

Tested by

no test coverage detected