func (l *List) RemoveFront() (int, error) {
	if l.N == 0 {
		return 0, errors.New("list is empty")
	}
	v := l.head.Value
	l.head = l.head.Next
	l.N--
	if l.N == 0 {
		l.tail = nil
	}
	return v, nil
}
//RemoveFront removes a first element from l It returns the value of the removed element e.

RemoveFront removes a first element from l It returns the value of the removed element e.
// RemoveFront removes a first element from l It returns the value of the removed element e .
func (l *List) RemoveFront() (int, error) {
	if l.N == 0 {
		return 0, errors.New("list is empty")
	}
	v := l.head.Value
	l.head = l.head.Next
	l.N--
	if l.N == 0 {
		l.tail = nil
	}
	return v, nil
}
func ( l * List ) RemoveFront ( ) ( int , error ) { if l . N == 0 { return 0 , errors . New ( " " ) } v := l . head . Value l . head = l . head . Next l . N -- if l . N == 0 { l . tail = nil } return v , nil }
RemoveFront removes a first element from l It returns the value of the removed element e.
RemoveFront removes a first element from l It returns the value of the removed element e .