Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Python

Idiom #242 Iterate over a set

Call a function f on each element e of a set x.

for e in x: f(e)
for e in x:
    f(e)
list(map(lambda e: f(e), x))

It will not work until list transformation
(doseq [e x]
  (f e))

New implementation...