Logo

Programming-Idioms

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

Idiom #242 Iterate over a set

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

x.forEach(f);

Note that for this to work, function f must accept (key, value) as parameters.
(doseq [e x]
  (f e))

New implementation...