Last active
March 1, 2019 08:42
-
-
Save mbjelac/799b22bce48af9f3f595cb44904c7164 to your computer and use it in GitHub Desktop.
Resolving the "Two algorithms" comment problem
This file contains hidden or 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
| function createCarrotSoup() { | |
| carrots = buyCarrots(); | |
| onions = buyOnions(); | |
| validateFreshness([carrots, onions]); | |
| pot = [carrots, onions, SALT]; | |
| hotPlate = startCooking(pot); | |
| waitFor(pot => | |
| pot.isBoiling() || | |
| carrotIsCooked(pot)); | |
| hotPlate.turnOff(); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
used in The World Of Comments: An Adventure