Executes the given function action specified number of times.
action
times
repeat(int times, void Function(int int) action) { for (int i = 0; i < times; i++) { action(i); } }