ã¢ã¸ã¢æ大ç´ã®å½éScalaã«ã³ãã¡ã¬ã³ã¹ã§ãããScalaMatsuri2020ãããªã³ã©ã¤ã³ã§éå¬ããã¾ãããããã§ä¸ææ°ããä»è¨èªçµé¨è ã0ããå§ããScala ï½blockå¼ã¨forå¼ã¨åã¯ã©ã¹ï½ãããã¼ãã«ç»å£ãç¶ãã¦yieldã®ä»ãforå¼ã«ã¤ãã¦ç´¹ä»ãã¾ããååã®è¨äºã¯ãã¡ãããã yieldã®ä»ãforå¼ ä¸æå¦æ°ï¼ä»¥ä¸ãä¸æï¼ï¼æ¬¡ã¯for expressionãforå¼ã«ã¤ãã¦ã§ãããå¼ãã¨è¨ãããã«ãScalaã®forã¯å¼ã§ããä»ã®è¨èªã§ã¯foræã¨è¨ããã¾ãããScalaã®forã¯å¼ã§ãããã®ããè©ä¾¡ããã¨å¤ã«ãªãã¾ããScalaã®å¼ã¯å¤§ããåãã¦2種é¡ããã¾ããäºç´èªã®yieldãä»ããã®ã¨ãä»ããªããã®ã§ãã yieldãä»ããªãforå¼ã¯ãåºæ¬çã«ä»ã®è¨èªã®foreachæ§æã¨ã»ã¼ä¸ç·ã§ããå ¨ä½ã®å¼ã¨ãã¦ã®è©ä¾¡çµæã¯ã¦ãããã¨ãããä½ã®æå³ããããªãå¤ã«ãªãã¾ã
{{#tags}}- {{label}}
{{/tags}}