Passing argument i into array map