examples/math/maybe.ck
raw| 1 | // name: maybe.ck |
| 2 | // desc: can't decide? flip a coin with `maybe`! |
| 3 | // NOTE: `maybe` evaluates to true with 50% probility |
| 4 | // |
| 5 | // author: Ge Wang |
| 6 | // date: 2023, in an age of uncertainty |
| 7 | |
| 8 | // what to eat? feel free to re-run this program |
| 9 | if( maybe ) <<< "get Chinese!", "" >>>; |
| 10 | else <<< " order Mexican!", "" >>>; |