我想从列表列表中删除所有出现的给定值。例如,输入:
'a' ["abc", "bc", "aa"]
输出:
["bc", "bc", ""]
至今:
remove :: Eq a => a -> [[a ]] -> [[a ]]
remove y xs = filter(\x -> x/= y) xs
我收到一个错误,提前谢谢你。
我想从列表列表中删除所有出现的给定值。例如,输入:
'a' ["abc", "bc", "aa"]
输出:
["bc", "bc", ""]
至今:
remove :: Eq a => a -> [[a ]] -> [[a ]]
remove y xs = filter(\x -> x/= y) xs
我收到一个错误,提前谢谢你。