Haskell standard library list functions reconstruction in C++.