Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Haskellに問題があります。2つの文字列を比較できる関数を探しています。関数は、両方の文字列に含まれる文字を含む文字列を出力する必要があります。
前もって感謝します。
あなたが探しているのは、2つのリストの要素と交差できるいくつかの関数です[a]。
[a]
Data.Listから1つあります:intersect :: Eq a => [a] -> [a] -> [a]。
intersect :: Eq a => [a] -> [a] -> [a]
> intersect "abcd" "db" "bd" it :: [Char]