ã©ãæ¸ãï¼orgã®ãé¡ããã
ãªã¹ãã®ãªã¹ãã«sequenceãé©ç¨ããã¨ç´ç©ãå¾ãããã
$ ghci Prelude> sequence [[1,2,3], [4,5,6]] [[1,4],[1,5],[1,6],[2,4],[2,5],[2,6],[3,4],[3,5],[3,6]] Prelude> sequence ["abc", "def"] ["ad","ae","af","bd","be","bf","cd","ce","cf"]
ã ããããããã¨ã2é²æ°(ã®æåå)ã®ãªã¹ããä½ããã
Prelude> sequence $ replicate 4 "01" ["0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"]
ã©ããã¦ãããªãã®ãã¯ããã£ããèãã¾ãã
id:nobsunããã[1..100]>>=penããã解説ãã¦ãããããâ¦ã¨å¯ãã«æå¾ ãã¦ããã®ã¯ç§å¯ã§ãã