Select values from a list based on values on some other list
addresses=["5412 N Alappuzha","5148 N Munnar","5800 E Kovalam","2122 N Palakkad","5645 N Wayanad","1060 W Kumarakom","4801 N Murukani","1039 W Kollengode",]counts=[0,3,10,4,1,7,6,1]more5=[n>5fornincounts]a=addresses[more5]a=[addresses[i]foriineachindex(more5)iftrue==more5[i]]a=[afor(a,c)inIterators.zip(addresses,counts)ifc>5]a=addresses[filter(i->counts[i]>5,1:length(counts))]a=addresses[counts.>5]println(a)
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)