但我无法管理它。Haskell - 过滤函数中的布尔函数
chsr :: [[String]] -> [(Int,Int)] ->[(Int,Int)]
chsr xs ts = filter(control xs)????
我该怎么做这部分?
但我无法管理它。Haskell - 过滤函数中的布尔函数
chsr :: [[String]] -> [(Int,Int)] ->[(Int,Int)]
chsr xs ts = filter(control xs)????
我该怎么做这部分?
不要写'if x then True else False'。它和'x'一样。 – hammar 2013-03-20 19:36:35
另外,不要在'括号中包含'xs'这样的参数。这不是必要的,并降低了可读性。 – 2013-03-20 19:37:17
感谢您的意见。我编辑了这个问题。 – molten 2013-03-20 19:39:34