Implement basic list operations.
In functional languages list operations like length, map, and
reduce are very common. Implement a series of basic list operations,
without using existing functions.
The foldLeft and foldRight methods are "fold" functions, which is a concept well-known in the functional programming world, but less so in the object-oriented one. See the Wikipedia page on folding for general background and signature/implementation hints.
To run the tests:
$ gradle testFor more detailed info about the Java track see the help page.
It's possible to submit an incomplete solution so you can see how others have completed the exercise.