Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Lua
local function map(t,fn)
 for i,v in ipairs(t) do
  t[i]=fn(v)
 end
 return t
end

local ret=map(elements,function(x) return x*c end)
for E of elements loop
   E := E * c;
end loop;

New implementation...
< >
Bzzzzzzzzz