func (q *Queue[T]) Dequeue() (res T, err error) {
	if q.IsEmpty() {
		return res, errEmptyQueue
	}

	res = q.array[0]
	q.array = q.array[1:]
	return res, nil
}
// Dequeue remove from the Queue
Dequeue remove from the Queue
// Dequeue remove from the Queue
func (q *Queue[T]) Dequeue() (res T, err error) {
	if q.IsEmpty() {
		return res, errEmptyQueue
	}
	res = q.array[0]
	q.array = q.array[1:]
	return res, nil
}
func ( q * Queue [ T ] ) Dequeue ( ) ( res T , err error ) { if q . IsEmpty ( ) { return res , errEmptyQueue } res = q . array [ 0 ] q . array = q . array [ 1 : ] return res , nil }
Dequeue remove from the Queue
Dequeue remove from the Queue