ååã®è¨äºã®ç¶ãã§ã www.izumisy.work åã®è¨äºã ã¨ç¶ç¶æ¸¡ãã®ã¹ã¿ã¤ã«ã§å¦çã表ç¾ãã¦ããããç¶ç¶æ¸¡ãã ã¨ã·ã³ãã«ã«ã¤ã³ãã³ããã©ãã©ãæ·±ããªã£ã¦ããã¨ããå¾®å¦ãªç¹ãããã Scalaã«ã¯foræã¨ããã®ãç¨æããã¦ããã®ã§ãç¶ç¶æ¸¡ãã¹ã¿ã¤ã«ãããforæã使ãã¹ã¿ã¤ã«ï¼for-comprehensionï¼ã®ã»ããä¸è¬çã«å¥½ã¾ããã å®éã®ã³ã¼ãã§è¨ãã¨ã以ä¸ã®ããã«foræã§å¦çã®æµããæ¸ãã¦ããæãã«ãªããååã®è¨äºåæ§ããã®æç¹ã§ã¯å
·ä½çãªå®è£
ã«é¢ãããã®ã¯ä½ãåºã¦ããªããããã¾ã§å¦çã®æµãã ãã§ããã object Main extends App { val program: Runnable = ??? for { _ <- program.output("hello!") _ <- program.output("what's your name?") nam
{{#tags}}- {{label}}
{{/tags}}