MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / iter_reverse

Function iter_reverse

tests/python/test_lists.py:976–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

974
975
976def iter_reverse():
977 a = pm.eval("(['7','9','1','2','3','4','5','6'])")
978 b = ""
979 for i in reversed(a):
980 b += i
981 assert b == '65432197'
982
983# slice subscript
984

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected