Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

adding two lists using lambda function

listA=['one', 'two' , 'three']
listB=['apple','cherry','watermelon']
list(map(lambda x, y: x+ ' ' +y, listA, listB))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #adding #lists #lambda #function
ADD COMMENT
Topic
Name
7+1 =