ãHaskell ã® mapM_ â foldr 㨠(>>) ãæèãã¦ãã®ã¤ã¥ã 1. mapM_ é¢æ°ãç解ããã«ã¯ãsequence é¢æ°ã®ç解ãä¸å¯æ¬ ååã¯ã mapM_ é¢æ° ã®åä½ã«ã¤ãã¦è¦ããããããã©ããæè¦çã«å ¨ç¶èº«ã«ä»ãã¦ããªãã mapM_ ã使ããã¨ããã¨ã ãããï¼ä¸ä½ããä½ãã¦ããã ã£ãã ã¨èãè¾¼ãã§ãã¾ããè¿ãå¤ã«é¢å¿ã®ãã mapM ã«ãã¦ãåãã å¤åããã®é¢æ°ã®ãã¼ã¹ã¨ãªã£ã¦ãã sequence é¢æ° ãã¡ããã¨ç解ãã¦ãªãããã«ãé ã®ä¸ã«ã¤ã¡ã¼ã¸ãæããªãã¨æãã (+_+) Prelude ã«ã¯ã sequence :: Monad m => [m a] -> m [a] Evaluate each action in the sequence from left to right, and collect the results. åãè¦ã
{{#tags}}- {{label}}
{{/tags}}