Tag Archives: list.last

Scala Problem Number Six

From the Scala 99 Problems, lets face the problem number six: P06 (*) Find out whether a list is a palindrome. Example: scala> isPalindrome(List(1, 2, 3, 2, 1)) res0: Boolean = true The first thing I had to do was … Continue reading

Posted in scala | Tagged , , , , , , , | Leave a comment