<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>■ はじめに Scalaで、yield と聞いて、Java の yield https://dk521123.hatenablog.com/entry/2013/07/26/234707 みたいなものかなっと思ったが全然別物だったのでメモ。 【１】for yield for 文の処理本体の前に yield を付けると 値を返す for 文 を作ることができる =&gt; なんのこっちゃ分からないと思うので 以下のサンプルを見た方が早い cf. yield (イールド) = 産出する 【２】サンプル import scala.io.Source import java.nio.file.{Paths,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2023%2F09%2F06%2F232921&quot; title=&quot;【Scala】Scala ～ for yield ～ - プログラム の超個人的なメモ&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>2023-09-06 23:29:21</published>
  <title>【Scala】Scala ～ for yield ～</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/2023/09/06/232921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
