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 を学んでおり、再帰を使用せずに独自の逆関数を作成しようとしました。
解決策は次の関数です。
myreverse = foldl (flip (:)) []
評価中に何が起こるかを理解しようとしています。
myreverse [1..5]
ここでフリップが何をするのか理解できません。誰かがここで何が起こっているのかを段階的な説明で書き留めることができますか?