input: Write a function to optimize the following Python program. The function should take a list of numbers as input and print each number on a new line using a more efficient method than a for loop. If the input list is empty, the function should not print anything.
  assert optimize_print([1, 2, 3, 4, 5, 6])==None
  assert optimize_print([])==None
output: def optimize_print(numbers):
      if numbers:
          print("\n".join(map(str, numbers)))