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
(ns double-cola.core) | |
;Sheldon, Leonard, Penny, Rajesh and Howard are in the queue | |
;for a "Double Cola" drink vending machine; there are no other | |
;people in the queue. The first one in the queue (Sheldon) buys | |
;a can, drinks it and doubles! The resulting two Sheldons go to | |
;the end of the queue. Then the next in the queue (Leonard) buys | |
;a can, drinks it and gets to the end of the queue as two Leonards, | |
;and so on. |