エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Being Lazy with ActiveRecord
In programming language terms, “laziness” refers to code whose evaluation is delayed until the la... In programming language terms, “laziness” refers to code whose evaluation is delayed until the last possible moment. This strategy can have several benefits. For example: nums = (1..1_000_000).lazy squares = nums.map { |x| x * x } squares.take_while { |x| x < 100 }.to_a #=> [1, 4, 9, 16, 25, 36, 49, 64, 81]In this (contrived) example, since we're using a lazy enumerator, we never actually calculat
2016/09/16 リンク