I’m currently looking into another one of your bowling games, this time written in F#. Again a language I’ve never heard of, but it seems to be pretty nice. Very similar to SML (yes, I also know some languages nobody else knows!), which I learned at university. I really like functional languages, especially when it comes to list operations, with all the folding, mapping and filtering. And I really miss them in Java!
Instead of a plain
-
result = List.map function inputList
you need that clumsy and not at all explicit
-
List<OtherType> result = new ArrayList<OtherType>;
-
for (Type each : inputList) {
-
result.add(function(each));
-
}