Haskell ã®ãªã¹ãå
å
表è¨ã¯ã¨ã£ã¦ã便å©ã§ãããã¾ãæå³ããªãã®ã§ãããããåºãããä¾ã¯ããããªæãã§ãã [(x,y)|x<-[1,2],y<-[3,4,5]] â [(1,3),(1,4),(1,5),(2,3),(2,4),(2,5)] ãã®ããã«ããã®ãªã¹ãå
å
表è¨ã¯ãããããäºéã®ã«ã¼ãã§ãããã®ããã«åãã¾ãã ãªã¹ãå
å
表è¨ã¯ãå®ã¯ç³è¡£æ§æã§ãããdo ã«ç´ãã¨ä»¥ä¸ã®ããã«ãªãã¾ãã do x<-[1,2] y<-[3,4,5] return (x,y) â [(1,3),(1,4),(1,5),(2,3),(2,4),(2,5)] åã¯ããã®æå³ããã£ã¨ç解ã§ãã¾ããã§ããã "<-" ã¯ãã¢ããã¨ããç®±ã®ä¸ãããä¸èº«ãåãåºãã¾ãããã¨ãã°ãJust "str" ããä¸èº«ãåãåºã㨠"str" ã¨ãªãããã«ãMaybe ã¢ãããç解ããã®ã¯ç°¡åã§ãã ã§ãããªã¹ã
{{#tags}}- {{label}}
{{/tags}}