flatMapã使ããããã«ãªã£ã¦èªåã®Scalaã¬ãã«ãæ ¼æ®µã«ä¸ãã£ãå°è±¡ãæã£ã¦ãã¾ãã ãã ãScalaãããå§ããé ã¯flatMapã®æåãã©ãããããªãé ã«å ¥ã£ã¦æ¥ãè¦ããã çµé¨ãæã¤ã®ã§ãããçµæ§åãæ©ã¿ãèããã¨ããã£ãã®ã§èª°ãã®å½¹ã«ç«ã¦ã°ãã¨æãã¾ã¨ãã¦ã¿ã¾ããã ã¢ããã¨ãããããã®ã¯ããã¦ããã¦ãflatMapã®æ¯ãèããç解ãã¦ãã£ãã使ããããã«ãªããã¨ãç®çã§ãã â»Java8ã§ãflatMapãStreamã«è¿½å ããã¦ããã®ã§æ¬è³ªçãªæ¯ãèãã¯åãããªã¨æã£ã¦ããã®ã§ããå½¹ã«ç«ããªãããããã¾ããã åºæ¬ flattenã¨mapãåæã«è¡ãããã®ãflatMapã§ãã ã¨ããããããã ãæãã¦ããã°flatMapã¯ã³ã¯ã¯ãã¤ã flattenæ©è½ã®ç¢ºèª ã¾ãã¯ããã¦mapæ©è½ã使ããã«flattenã®åãã ãã確èªã
{{#tags}}- {{label}}
{{/tags}}