<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtoyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/mtoyoshi/</author_url>
  <blog_title>mtoyoshi開発メモ</blog_title>
  <blog_url>https://mtoyoshi.hateblo.jp/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>for 1〜10まで3刻みで。 for(i 1&lt;- 1 to 10 by 3) println(i) 1〜20（20は含まない）のうち、2と3の倍数だけ。 for(i &lt;- 1 until 20 if i % 2 == 0; i % 3 == 0) prinltn(i) 2重ループ for(i &lt;- 1 to 2; j &lt;- 1 to 4) println(i + &quot;-&quot; + j) 戻り値を返すfor。 val result = for(i &lt;- 1 to 10) yield i*2 // for-yield文は以下と同じイメージ val result = (1 to 10).map(_*2)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F2013%2F05%2F04%2F083937&quot; title=&quot;Scalaの基本文法（忘れそうなもの） - mtoyoshi開発メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-04 08:39:37</published>
  <title>Scalaの基本文法（忘れそうなもの）</title>
  <type>rich</type>
  <url>https://mtoyoshi.hateblo.jp/entry/2013/05/04/083937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
