func (ll *LinkedList[T]) Pop() T {
	var d T
	if ll.length == 0 || ll.tail == nil {
		return d
	}
	d = ll.tail.data
	_ = ll.tail.Remove()
	return d
}
// Pop removes the last item of the list and returns its data.
Pop removes the last item of the list and returns its data.
// Pop removes the last item of the list and returns its data .
func (ll *LinkedList[T]) Pop() T {
	var d T
	if ll.length == 0 || ll.tail == nil {
		return d
	}
	d = ll.tail.data
	_ = ll.tail.Remove()
	return d
}
func ( ll * LinkedList [ T ] ) Pop ( ) T { var d T if ll . length == 0 || ll . tail == nil { return d } d = ll . tail . data _ = ll . tail . Remove ( ) return d }
Pop removes the last item of the list and returns its data.
Pop removes the last item of the list and returns its data .