Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • C++
for (auto &it : elements)
	it *= c;
#include <algorithm>
std::transform(std::begin(elements), std::end(elements), std::begin(elements), [c](auto i){
        return i*c;
    });
for E of elements loop
   E := E * c;
end loop;

New implementation...
< >
Bzzzzzzzzz