Haskell
なんで????? do ってようするになんなの? どうしても書かずにいられなかった。 testConst = "ABCDEF" testMethod a = do a1 <- testConst return (a1, a) ghci で testMethod "ABC" => [('A',"ABC"),('B',"ABC"),('C',"ABC"),('D',"ABC"),('E',"ABC"),…
なんで????? do ってようするになんなの? どうしても書かずにいられなかった。 testConst = "ABCDEF" testMethod a = do a1 <- testConst return (a1, a) ghci で testMethod "ABC" => [('A',"ABC"),('B',"ABC"),('C',"ABC"),('D',"ABC"),('E',"ABC"),…