返回顶部

收藏

use while and until in a single line setting, as with if and unless:

更多
i = 1
i = i * 2 until i > 1000
puts i

标签:Ruby,Statement

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-02-09 11:56:59use curly braces ({}): by Loli控
  2. 2016-02-17 20:44:19The if Statement with constant by Jamin
  3. 2016-03-29 16:55:30Nested for loop by 杨洋
  4. 2016-09-06 17:58:38general form of the for loop by Loli控
  5. 2016-09-06 20:50:38throw sends a message to catch if n is less than or equal to 0. by Loli控
  6. 2016-09-07 11:14:26do all the times tables from 1 to 12 by LeoSun
  7. 2016-11-01 09:24:09If vs Case by digua
  8. 2015-12-06 17:14:38All Ruby expressions return a result by 胡晋
  9. 2016-03-02 11:18:28nest if logic by jeffsui
  10. 2016-09-06 18:18:46For each item in by 杨洋
  11. 2016-09-06 21:11:42basic way to implement a loop by Ω油菜
相关聚客文章
  1. Skydark Chen 发表 2012-06-14 16:00:00 为什么 Lisp 经久不衰
  2. 博主 发表 2016-11-13 07:52:45 octopress自定义markdown的code语法
  3. 博主 发表 2014-12-06 09:13:11 HTTP Verb: POST, PUT和PATCH的区别
  4. 博主 发表 2017-02-05 03:06:03 ruby没有做到编程语言应该有的优化
  5. pannengqian 发表 2017-05-16 09:49:45 THESIS STATEMENT WRITING
  6. pannengqian 发表 2017-07-05 08:37:52 Thesis Statement Producing
  7. xinlu 发表 2017-09-11 07:12:29 Angular安装教程及npm使用淘宝镜像
  8. 博主 发表 2017-11-20 14:00:00 Statement on the statement on the history of node-
  9. 博主 发表 2018-01-21 12:01:32 深圳 Ruby 2016.08.21 活动总结
  10. 博主 发表 2018-03-28 17:10:00 Ruby 2.4.4 Released
  11. Jingyi Chen 发表 2018-05-22 23:58:45 Introducing support for Amazon S3 Select in the AW
  12. Trevor Rowe 发表 2015-02-05 23:46:12 Announcing V2 of the AWS SDK for Ruby

发表评论