文字列のリストから空の文字列を取り除く関数
id:desumasu:20060906:1157554426より。Stringは[Char]なのでこれでもよいです。あまり変わりませんが、文字列に限定されなくなっていい感じ。
removeEmptyElement :: [[a]] -> [[a]] removeEmptyElement = filter (not . null)
id:desumasu:20060906:1157554426より。Stringは[Char]なのでこれでもよいです。あまり変わりませんが、文字列に限定されなくなっていい感じ。
removeEmptyElement :: [[a]] -> [[a]] removeEmptyElement = filter (not . null)