MCPcopy Index your code
hub / github.com/geekcomputers/Python / forward

Method forward

BrowserHistory/backend.py:77–93  ·  view source on GitHub ↗

Returns - str Input - int ---------- - Moves forward through history up to available steps - Updates navigation counters - Returns current page URL

(self, steps: int)

Source from the content-addressed store, hash-verified

75 return self._curr.val
76
77 def forward(self, steps: int) -> str:
78 """
79 Returns - str
80 Input - int
81 ----------
82 - Moves forward through history up to available steps
83 - Updates navigation counters
84 - Returns current page URL
85 """
86 # Only traverse available nodes
87 steps = min(steps, self._forward_count)
88 while steps > 0:
89 self._curr = self._curr.nxt
90 steps -= 1
91 self._forward_count -= 1
92 self._back_count += 1
93 return self._curr.val
94
95
96if __name__ == "__main__":

Callers 12

colour spiral.pyFile · 0.45
heart_redFunction · 0.45
Turtle_Star.pyFile · 0.45
draw_rectangleMethod · 0.45
draw_triangleMethod · 0.45
treeFunction · 0.45
snowflakeFunction · 0.45
backend.pyFile · 0.45
moveMethod · 0.45
create_buttonFunction · 0.45

Calls

no outgoing calls

Tested by 2