Some Haskell list operations implemented in Java.