Last active
March 14, 2019 21:38
-
-
Save mchmielarz/c5139ca477ccab9621d683862fafe8c4 to your computer and use it in GitHub Desktop.
for-comprehension: methods providing data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Option<Body> body() { | |
return Some(new Body()); | |
} | |
private Option<Wheels> wheels() { | |
return Some(new Wheels()); | |
} | |
private Option<Engine> engine() { | |
return Some(new Engine()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment