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