Toy brainf**k interpreter; example app that can be modified without restarting
map = function(arr, f)
  local result = {}
  for _, x in ipairs(arr) do
    table.insert(result, f(x))
  end
  return result
end