{"id":22735477,"url":"https://github.com/francomelandri/lib-tiny-fp","last_synced_at":"2025-07-22T22:34:31.588Z","repository":{"id":257847049,"uuid":"865835917","full_name":"FrancoMelandri/lib-tiny-fp","owner":"FrancoMelandri","description":"Tiny Functional Programming library for C++","archived":false,"fork":false,"pushed_at":"2024-10-17T10:46:29.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T02:29:31.875Z","etag":null,"topics":["functional-programming","noif","tdd"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrancoMelandri.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-01T08:08:12.000Z","updated_at":"2024-10-17T10:45:04.000Z","dependencies_parsed_at":"2024-10-18T21:20:43.519Z","dependency_job_id":null,"html_url":"https://github.com/FrancoMelandri/lib-tiny-fp","commit_stats":null,"previous_names":["francomelandri/lib-tiny-fp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/FrancoMelandri/lib-tiny-fp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Flib-tiny-fp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Flib-tiny-fp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Flib-tiny-fp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Flib-tiny-fp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancoMelandri","download_url":"https://codeload.github.com/FrancoMelandri/lib-tiny-fp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Flib-tiny-fp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266586388,"owners_count":23952172,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["functional-programming","noif","tdd"],"created_at":"2024-12-10T21:10:47.888Z","updated_at":"2025-07-22T22:34:31.565Z","avatar_url":"https://github.com/FrancoMelandri.png","language":"C++","readme":"[![CI](https://github.com/FrancoMelandri/lib-tiny-fp/actions/workflows/ci.yaml/badge.svg)](https://github.com/FrancoMelandri/lib-tiny-fp/actions/workflows/ci.yaml/badge.svg)\n\n\n# lib-tiny-fp\n\nC++ Functional programming library.\n\n## abstract\n\nThe aim of `lib-tiny-fp` library is to implement the basic functional data types allows you to use **Railway Oriented Programming** in native way.\n\nExample:\n\n```c++\n\nauto sut = makeOption\u003cFakeClass\u003e(\n                TinyFp::Try\u003cFakeClass\u003e::handle(onHandle)\n                        .match(trySuccees),\n                whenNonde)\n        .toEither\u003cError\u003e(LeftValue)\n        .map\u003cFakeClassMapped\u003e(mapEither)\n        .match\u003cint\u003e(onRight,\n                    onLeft);\n\n```\n\n## types\n\n- [Types](./docs/types.md)\n- [Option](./docs/option.md)\n- [Either](./docs/either.md)\n- [Try](./docs/try.md)\n- [Sequence](./docs/sequence.md)\n- [Pipeline](./docs/pipeline.md)\n- [Extensions](./docs/extensions.md)\n\n\n## install\n\nTo install the latest versionlibrary you can use directly the source code files.\nclone the repository:\n\n```bash\n\u003e git clone https://github.com/francomelandri/lib-tiny-fp\n\n\u003e cd lib-tiny-fp\n\u003e make install\n\n```\n\nThe libray will be installed into `/usr/local/lib/libtinyfp` and `/usr/local/include/libtinyfp` folders.\n\nTo build your own code you should include these path in the Kakefile\n\n```makefile\nCFLAGS = -O1 -Wall -I/usr/local/inlcude/libtinyfp \nCCX = g++\n\nLIBTINYFP = /usr/local/lib/libtinyfp/libtinyfp.a\nAPPNAME = test\n\nall: $(APPNAME)\n\nDEMOFILES = test.o\n\n$(APPNAME): $(DEMOFILES)\n\t$(CCX) $(DEMOFILES)  $(LIBTINYFP) -o $(APPNAME)\n\n%.o: %.cpp\n\t$(CCX) $(CFLAGS) -c $\u003c\n\nclean:\n\trm -f $(APPNAME) $(DEMOFILES)\n\nrebuild: clean all\n```\n\n## developer\n\nSome advices on how to build the code in windows; the day by day work.\n\n[Developer](./docs/developer.md) \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancomelandri%2Flib-tiny-fp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancomelandri%2Flib-tiny-fp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancomelandri%2Flib-tiny-fp/lists"}