ãããããã¤ã¼ãã話é¡ã«ãªã£ã¦ããã ãé åã®ãã¹ã¦ã®è¦ç´ ãæ¡ä»¶ãæºãããªãtrueãè¿ããé¢æ°ãå®ç¾©ããã¨ãã空ã®é åã渡ãããfalseãè¿ããtrueãè¿ããããè¯ãããã°ã©ããã©ããã®ä¸ã¤ã®å¢ç®ã â ãµã¿ (DJ Monad) (@fumieval) 2023å¹´5æ29æ¥ ã¤ã¾ãScalaã§è¨ãã¨æ¬¡ã®ãããªã³ã¼ããä½ã«ãªãããã¨ãããã®ã§ããã val xs = Seq.empty[Int] xs.forall(_ == 42) çµè«ããè¨ãã¨ããã®ãããªé¢æ°ã¯å¸¸ã«trueãè¿ãã ãªãã ããï¼ãã®çç±ããããã説æããã ã¡ãªã¿ã«ä»ã«ä»¥ä¸ã®ãããªæè¦ããã£ã: ä»æ§ã«ãã ä¾å¤ãæããã¹ã ããããã¾ãããããªãã¯ãªãããããã¦ãããã»ããè¯ãã¨æããããä»®ã«falseãè¿ããããªä»æ§ããã£ãå ´åãããã¯æ°å¦ããä¹é¢ãã¦ããã®ã§ãããä»æ§å é¨ã§çç¾ããå¯è½æ§ãé«ãã*1ãæçµçã«
{{#tags}}- {{label}}
{{/tags}}