This week's book giveaway is in the Java in General forum. We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line! See this thread for details.
I was just trying to come up with a small Scala function that would do the alphabet combination for me. Something like we have in Excel as the column headers:
The call would be:
Is there a much simpler way?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
There are many ways to generate sequences. I would use haskell'ish style to do that:
This code creates an unbounded sequence of strings. You can adapt this code to generate sequences of limited length. In this case you would not need any laziness tricks.