C++ Algorithms in Haskell and the Haskell Playground
summary
Shows C++ STL algorithms reimplemented in Haskell and a tiny REPL wrapper called Haskell Playground built as a Python script around G HCI that colorizes and traces types. Implements countIf as length . filter and adjacent difference via an adjacent-pair mapping and a minus section. Demonstrates composition and type inference step by step and runs an example where adjacent differences produce [0,1,0,-2,0,1,-1] so count adjacent = 3, proving the approach works end to end.
AI-written summary · about








