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.
文字列を取り込んで回文を作成する関数を作成しようとしています。
たとえば、 にaceなりaceecaます。
ace
aceeca
非常に簡単です。逆の文字列をそれ自体に連結するだけです。
palindrome s = s ++ reverse s
++はリスト連結関数です。
RealWorldHaskellを紹介します。始めたばかりの場合は、言語を学ぶのに適した本です。