func IsPalindrome(l *list.List) bool {
	ef, eb := l.Front(), l.Back()
	for i := 0; i < l.Len()/2; i++ {
		if ef.Value != eb.Value {
			return false
		}
		ef, eb = ef.Next, eb.Prev
	}
	return true
}
// IsPalindrome checks if a list l is a palindrome

IsPalindrome checks if a list l is a palindrome
// IsPalindrome checks if a list l is a palindrome
func IsPalindrome(l *list.List) bool {
	ef, eb := l.Front(), l.Back()
	for i := 0; i < l.Len()/2; i++ {
		if ef.Value != eb.Value {
			return false
		}
		ef, eb = ef.Next, eb.Prev
	}
	return true
}
func IsPalindrome ( l * list . List ) bool { ef , eb := l . Front ( ) , l . Back ( ) for i := 0 ; i < l . Len ( ) / 2 ; i ++ { if ef . Value != eb . Value { return false } ef , eb = ef . Next , eb . Prev } return true }
IsPalindrome checks if a list l is a palindrome
IsPalindrome checks if a list l is a palindrome