MCPcopy Create free account
hub / github.com/ActiveState/code / reverse

Method reverse

recipes/Python/440656_List_mixin/recipe-440656.py:157–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155 return ans
156
157 def reverse(self):
158 for i in xrange(len(self)//2):
159 j = len(self) - 1 - i
160 (self[i], self[j]) = (self[j], self[i])
161
162 def index(self, x, i=0, j=None):
163 if i != 0 or j is not None:

Callers 15

recipe-578464.jsFile · 0.45
convexHullFunction · 0.45
bin_oldFunction · 0.45
get_starsFunction · 0.45
xmergeFunction · 0.45
boundFunction · 0.45
unpackMethod · 0.45
packMethod · 0.45
wrapperFunction · 0.45
recipe-576895.pyFile · 0.45
polyRootsFunction · 0.45
dirSizeFunction · 0.45

Calls 1

xrangeClass · 0.85

Tested by

no test coverage detected