Mercurial > repo
view bin/CaT @ 4155:1e4bcd213420
<oerjan> echo \'A catamorphism is when you recurse too greedily and too deep.\' >wisdom/catamorphism
author | HackBot |
---|---|
date | Tue, 10 Dec 2013 17:18:55 +0000 |
parents | d9ab4c1c05dd |
children |
line wrap: on
line source
#!/usr/bin/env python import sys sys.stdout.write ((lambda s: "".join([(s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read()))