F
Fortepianissimo
I know I can do things like
s=Set(range(1,11))
s=Set(filter(lambda x:x%2==0,s))
But this seems a bit slow since filter returns a list which then must
be converted back to a set. Any tips? Thanks!
s=Set(range(1,11))
s=Set(filter(lambda x:x%2==0,s))
But this seems a bit slow since filter returns a list which then must
be converted back to a set. Any tips? Thanks!