func (l *DoublyLinkedList) Prepend(val int) {
	if l.Head == nil {
		l.Head = &Node{value: val}
		l.Tail = l.Head
		return
	}

	tmp := &Node{value: val, right: l.Head}
	l.Head.left = tmp
	l.Head = tmp
}
// Prepend a value before the start of the linked list
Prepend a value before the start of the linked list
// Prepend a value before the start of the linked list
func (l *DoublyLinkedList) Prepend(val int) {
	if l.Head == nil {
		l.Head = &Node{value: val}
		l.Tail = l.Head
		return
	}
	tmp := &Node{value: val, right: l.Head}
	l.Head.left = tmp
	l.Head = tmp
}
func ( l * DoublyLinkedList ) Prepend ( val int ) { if l . Head == nil { l . Head = & Node { value : val } l . Tail = l . Head return } tmp := & Node { value : val , right : l . Head } l . Head . left = tmp l . Head = tmp }
Prepend a value before the start of the linked list
Prepend a value before the start of the linked list