kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

43_while_expression_break.toy (241B)


      1 fn __user_main(): i64 {
      2   var i: i64 = 0;
      3   let found: i64 = while<i64> i < 5 {
      4     if i == 3 {
      5       break i;
      6     }
      7     i = i + 1;
      8     continue;
      9   } else {
     10     99
     11   };
     12   return found + 39;
     13 }
     14 
     15 fn main(): i32 { return __user_main() as i32; }