æ°æ¥åã«é ã®ä¸ã§èãã¦ãé§æã ã¢ããã«ãã£ã¦æ§è³ªã大ããéããã¨ããã¢ããã¯æ´ã¿ã«ãããã®ã ã£ã¦ã®ã¯ããè¨ããããã¨ã ãã©ãããã¯åã¢ããã®bindã®ç¹è²ãfmapã«å ¥ã£ã¦ãããjoinã«å ¥ã£ã¦ãããã«ãé¢é£ããã®ããªã¨æã£ãã ä¾ãã°ãListãMaybeã ã¨ãjoinã¯ç®ãå¥ãã ãã§é¢ç½ããã¨ã¯ä½ããã¦ãªãã¦ãfmapã«ãã®ç¹è²ãå ¥ã£ã¦ããã instance Functor [] where fmap = map map :: (a -> b) -> [a] -> [b] map _ [] = [] map f (x:xs) = f x : map f xs éã«StateãIOã¢ããã®fmapã¯å¤ãæ®éã«é¢æ°é©ç¨ããã ãã§èå¾ã«ããç¶æ ã¯ã¾ã£ãã触ããªããé¢ç½ããã¨ããã£ã¦ããã®ã¯joinã®æ¹ã§ãç¶æ ã®å¤æ´ãå¤å´ï¼å å´ãã¨é çªã«é次å¦çããå½¹å²ãæ ã£ã¦ããã join :: (M
{{#tags}}- {{label}}
{{/tags}}