{"id":16569059,"url":"https://github.com/polossk/zero-kara-fcpp","last_synced_at":"2025-03-16T20:31:07.535Z","repository":{"id":41156400,"uuid":"148895945","full_name":"polossk/Zero-Kara-FCPP","owner":"polossk","description":"Simple Functional Programming of C++ from Scratch 从零开始的简单函数式C++ ZEROから始める使いやすい関数型プログラミング","archived":false,"fork":false,"pushed_at":"2019-12-30T02:25:28.000Z","size":162,"stargazers_count":104,"open_issues_count":0,"forks_count":11,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-16T05:31:40.079Z","etag":null,"topics":["cpp-course","cpp11","functional-programming"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polossk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-15T11:26:55.000Z","updated_at":"2025-03-07T19:28:18.000Z","dependencies_parsed_at":"2022-08-10T01:42:51.640Z","dependency_job_id":null,"html_url":"https://github.com/polossk/Zero-Kara-FCPP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polossk%2FZero-Kara-FCPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polossk%2FZero-Kara-FCPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polossk%2FZero-Kara-FCPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polossk%2FZero-Kara-FCPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polossk","download_url":"https://codeload.github.com/polossk/Zero-Kara-FCPP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243928299,"owners_count":20370265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp-course","cpp11","functional-programming"],"created_at":"2024-10-11T21:12:18.250Z","updated_at":"2025-03-16T20:31:06.907Z","avatar_url":"https://github.com/polossk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"从零开始的简单函数式 C++\n========================================\n\n[![CC-BY-NC-SA-4.0](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](https://creativecommons.org/licenses/by-nc-sa/4.0/)\n\n如标题所示，这个教程主要是讲解如何用现代的 C++ 以及所配套的 STL 来“函数式”地编程。具体而言，本教程会讲解以下内容：\n\n* STL 中的主要工具：元组 `pair`，`tuple`，向量 `vector`\n* C++11 引入的 lambda 函数\n* 假装在函数式编程的三板斧：`filter`，`map`，`reduce`\n* 是否需要引入 lazy 求值\n* 简单的函数操作\n* 递归与状态变换\n* 基础的模板元编程（编译时计算）\n\n当然，如果真的执着于函数式编程的话，C++ 是显然不能满足绝大多数人的要求的，比如不能轻松地进行模式匹配，也没有较为简单地惰性求值。这时候不如推荐一些纯粹的函数式语言例如 Haskell 或者 scheme。\n\n## 章节说明\n\n* [前言](Chapters/chapter-00-Introduction.md)\n* [STL 中的主要工具](Chapters/chapter-01-STL-Tools.md)\n* [C++11 引入的 lambda 函数](Chapters/chapter-02-lambda.md)\n* [函数式编程工具箱](Chapters/chapter-03-Functional-Tools.md)\n* [更多的函数](Chapters/chapter-04-More-Functional.md)\n* [C++ 的元编程](Chapters/chapter-05-CPP-Metaprogram.md)\n* [杂项](Chapters/chapter-06-Misc.md)\n\n## 其他\n\n* 本教程的目的在于理解并思考一种可能的 C++ 的函数式编程实现，并非劝诫大家**使用**函数式 C++\n* 本文同时发布在知乎上，也欢迎大家评论\n\n## License\n\nThis work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit \u003chttp://creativecommons.org/licenses/by-nc-sa/4.0/\u003e or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolossk%2Fzero-kara-fcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolossk%2Fzero-kara-fcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolossk%2Fzero-kara-fcpp/lists"}