Skip to main content
added 9 characters in body
Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

20 chars

map(str.__add__,a,b)

Just like your code of

map(lambda x,y:x+y,a,b)

but withUses the build-in method string addition method __add__ that is invoked by + on strings in place of your anonymous function lambda x,y:x+y.

20 chars

map(str.__add__,a,b)

Just like your code of

map(lambda x,y:x+y,a,b)

but with the build-in string addition method.

20 chars

map(str.__add__,a,b)

Uses the build-in method string addition method __add__ that is invoked by + on strings in place of your anonymous function lambda x,y:x+y.

Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

20 chars

map(str.__add__,a,b)

Just like your code of

map(lambda x,y:x+y,a,b)

but with the build-in string addition method.