æ¦è¦ forå¼ãå®éã©ã®ããã«å±éãããã®ãããã£ãæ°ã«ãªã£ã¦ãããã©ãçµå±ããããã£ã¦ãªãã¦ãã¡ããã¨èª¿ã¹ããç解ã§ããã®ã§ãèªæã®å¿µãè¾¼ãã¦æ¸ããè¨äºã§ãã 1 è¨èªä»æ§ 6.19 For Comprehensions and For Loopsã«æ¸ããã¦ãããã¨ã¯ç°¡åã§ã yieldã®ãªãforå¼ã¯ãforeachå±é yieldãããforå¼ã¯ãflatMap/mapå±é ã«ãªãã¾ããããã ãã ã¤ã¾ã大éæã«è¨ãã°ã åç´ã«å¤ãå¦çãããã ãã®æã¯ãyieldã®ãªãforå¼ (foreachå±é) å¤ãmap(åå¤æãªã©)ãã¦è¿ãããæã¯ãyieldãã¤ããforå¼ (flatMap/mapå±é) ã使ç¨ããã°ããã§ãã ã¡ãªã¿ã«ãforå¼ä¸ã®ifã¯withFilterã«å¤æããã¾ãã
{{#tags}}- {{label}}
{{/tags}}