{"width":"100%","blog_title":"memo486","url":"https://memo88.hatenablog.com/entry/2020/07/11/120000","provider_url":"https://hatena.blog","blog_url":"https://memo88.hatenablog.com/","image_url":null,"published":"2020-07-11 12:00:00","height":"190","author_url":"https://blog.hatena.ne.jp/sonota88/","description":"Kotlin \u306b\u5165\u9580\u3057\u3066\u3044\u307e\u3059\u3002 \u307e\u305a\u306f\u4f55\u304b\u9069\u5f53\u306a\u3082\u306e\u3092\u4f5c\u308a\u306a\u304c\u3089\u6163\u308c\u3088\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u56db\u5247\u6f14\u7b97\u3068\u5270\u4f59\u306e\u307f\u306eexpr\u30b3\u30de\u30f3\u30c9\u3092Ruby\u3067\u4f5c\u3063\u3066\u307f\u305f \u3092\u79fb\u690d\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u624b\u66f8\u304d\u306e\u518d\u5e30\u4e0b\u964d\u30d1\u30fc\u30b5\u3067\u3059\u3002 # (100 - 2 - 1) / (1 + 2) % 5 * 3 # => 97 / 3 % 5 * 3 # => 32 % 5 * 3 # => 2 * 3 # => 6 ## \u5b9f\u884c\u306e\u4f8b $ kotlin MyExpr.kts -- \\( 100 - 2 - 1 \\) / \\( 1 + 2 \\) % 5 \\* 3 6 ## \u78ba\u8a8d\u306e\u305f\u3081\u540c\u3058\u5f15\u6570\u3067 expr \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c $ expr \\( 10\u2026","categories":["Kotlin"],"provider_name":"Hatena Blog","author_name":"sonota88","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2020%2F07%2F11%2F120000\" title=\"\u56db\u5247\u6f14\u7b97\u3068\u5270\u4f59\u306e\u307f\u306eexpr\u30b3\u30de\u30f3\u30c9\u3092Kotlin\u3067\u4f5c\u3063\u3066\u307f\u305f - memo486\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","type":"rich","title":"\u56db\u5247\u6f14\u7b97\u3068\u5270\u4f59\u306e\u307f\u306eexpr\u30b3\u30de\u30f3\u30c9\u3092Kotlin\u3067\u4f5c\u3063\u3066\u307f\u305f"}