input: from typing import List
  
  def generate_number_list(limit: int) -> List[int]:
      """ Generate a list of numbers using a while loop that appends the current number to the list
      until the number reaches the given limit.
      >>> generate_number_list(10)
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
      >>> generate_number_list(5)
      [0, 1, 2, 3, 4]
      """
output:     numbers = []
      current_number = 0
      while current_number < limit:
          numbers.append(current_number)
          current_number += 1
      return numbers