Skip to main content
Commonmark migration
Source Link

##Python, 40 bytes

Python, 40 bytes

f=lambda s,i=1:s and s[0]*i+f(s[1:],i+1) 

##Python, 40 bytes

f=lambda s,i=1:s and s[0]*i+f(s[1:],i+1) 

Python, 40 bytes

f=lambda s,i=1:s and s[0]*i+f(s[1:],i+1) 
Source Link
xnor
  • 149.7k
  • 26
  • 287
  • 676

##Python, 40 bytes

f=lambda s,i=1:s and s[0]*i+f(s[1:],i+1)