注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
Someone came up with a list of 10 one-liner examples that are meant to showcase Scala’s expressiv... Someone came up with a list of 10 one-liner examples that are meant to showcase Scala’s expressiveness. A CoffeeScript version quickly emerged, so I thought I’d publish a Ruby one. I find Ruby’s syntax to be a bit cleaner than Scala’s, but the substance (at least as far as these examples are concerned) is relatively similar. Multiply each item in a list by 2 (1..10).map { |n| n * 2 } Sum a list of
2011/06/03 リンク