Here I show sample scala usage by solving some of the 99 scala problems given here
1. Find the last element of a list.
2. Find the last but one element of a list.
3. Find the Kth element of a list.
4. Find the number of elements in a list.
5. Reverse a list.
6. Find if a list is a palindrome.
7. Flatten a list.
The answers and original questions are provided under the Creative Commons Attribution-Share Alike license – http://creativecommons.org/licenses/by-sa/3.0/us/