Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python array find lambda

lst = [1,2,3,4]
filter(lambda x: x % 2 == 0, lst)
[x for x in lst if x %2 == 0]
#[2,4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #array #find #lambda
ADD COMMENT
Topic
Name
6+5 =