We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34e0e53 commit 39a071eCopy full SHA for 39a071e
java/src/main/java/v/o/i/d/iomonad/GuessingGame.java
@@ -11,7 +11,7 @@ public class GuessingGame {
11
private static final InputStream in = System.in;
12
13
public static void main(String[] args) {
14
- IoMonad<Void> game = IoMonad
+ final var game = IoMonad
15
.of(() -> out.println("Welcome to the Guessing Game!"))
16
.bind(ignored -> generateRandomNumber())
17
.map(number -> number + 1) // [0, 100) -> [1, 100]
0 commit comments