Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check where bool in a list python

# Function that returns idx of true in 
return_idx = lambda bool_lis: list(filter(lambda i: bool_lis[i], range(len(bool_lis))))
 
PREVIOUS NEXT
Tagged: #check #bool #list #python
ADD COMMENT
Topic
Name
6+9 =