MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-119029.py

File recipe-119029.py

recipes/Python/119029_reverse_a_string/recipe-119029.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1f = lambda s:s and f(s[1:])+s[0]
2#or
3f = lambda s:reduce(lambda a,b:b+a,s,'')
4#or

Callers

nothing calls this directly

Calls 7

listClass · 0.85
fFunction · 0.50
extendMethod · 0.45
reverseMethod · 0.45
joinMethod · 0.45
popMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected