請確定此編程語言:識別編程語言
*Main> [ ((a,b,c),(d,e)) |
a <- [1..7],
b <- [2..8],
c <- [3..9],
d <- [1..8],
e <- [2..9],
a < b,
b < c,
d < e,
List.intersect [d,e] [a,b,c] == [],
a+b+c == 23,
d+e == 10 ]
輸出:
[((6,8,9),(3,7))]
我發現代碼this blog comment。
+1用於查找與哈斯克爾 – lewiguez 2010-10-13 20:15:10