{"id":18021205,"url":"https://github.com/yousefvand/sanctuary-examples","last_synced_at":"2025-07-23T23:08:35.745Z","repository":{"id":66079923,"uuid":"158549144","full_name":"yousefvand/sanctuary-examples","owner":"yousefvand","description":"Example projects using sanctuary.js as FP library","archived":false,"fork":false,"pushed_at":"2018-12-16T05:56:44.000Z","size":124,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T14:22:12.235Z","etag":null,"topics":["examples","functional-programming","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/yousefvand.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":"2018-11-21T13:05:03.000Z","updated_at":"2022-07-12T18:57:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"37862531-f081-4d41-821c-bdffb55e8789","html_url":"https://github.com/yousefvand/sanctuary-examples","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/yousefvand%2Fsanctuary-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefvand%2Fsanctuary-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefvand%2Fsanctuary-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousefvand%2Fsanctuary-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yousefvand","download_url":"https://codeload.github.com/yousefvand/sanctuary-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747405,"owners_count":20665783,"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":["examples","functional-programming","javascript"],"created_at":"2024-10-30T06:09:07.147Z","updated_at":"2025-03-26T22:30:37.399Z","avatar_url":"https://github.com/yousefvand.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sanctuary-examples\n\nExample projects using [sanctuary.js](https://github.com/sanctuary-js/sanctuary) as their [FP](https://en.wikipedia.org/wiki/Functional_programming) library.\n\nRead each project `README.md` for more details.\n\n## [Basic](basic/README.md)\n\n- [Array](basic/array/README.md)\n  - [at](basic/array/at.md)\n  - [concat](basic/array/concat.md)\n  - [drop](basic/array/drop.md)\n  - [dropLast](basic/array/drop-last.md)\n  - [dropWhile](basic/array/drop-while.md)\n  - [head](basic/array/head.md)\n  - [product](basic/array/product.md)\n  - [range](basic/array/range.md)\n  - [slice](basic/array/slice.md)\n  - [size](basic/array/size.md)\n  - [sort](basic/array/sort.md)\n  - [tail](basic/array/tail.md)\n  - [take](basic/array/take.md)\n  - [takeLast](basic/array/take-last.md)\n  - [takeWhile](basic/array/take-while.md)\n  - [reverse](basic/array/reverse.md)\n  - [flip](basic/array/flip.md)\n- [Functions](basic/functions/README.md)\n  - [map](basic/functions/map.md)\n  - [I (identity)](basic/functions/identity.md)\n- [Logic](basic/logic/README.md)\n  - [and](basic/logic/and.md)\n  - [or](basic/logic/or.md)\n  - [not](basic/logic/not.md)\n  - [identity](basic/logic/id.md)\n  - [filter](basic/logic/filter.md)\n  - [reject](basic/logic/reject.md)\n  - [complement](basic/logic/complement.md)\n- [Math](basic/math/README.md)\n  - [add](basic/math/add.md)\n  - [subtract](basic/math/sub.md)\n  - [minimum](basic/math/min.md)\n  - [maximum](basic/math/max.md)\n  - [less than](basic/math/lt.md)\n  - [less than or equal](basic/math/lte.md)\n  - [greater than](basic/math/gt.md)\n  - [greater than or equal](basic/math/gte.md)\n  - [multiply](basic/math/mult.md)\n  - [negate](basic/math/negate.md)\n  - [divide](basic/math/div.md)\n  - [power](basic/math/pow.md)\n- [String](basic/string/README.md)\n  - [concat](basic/string/concat.md)\n  - [lines](basic/string/lines.md)\n  - [unlines](basic/string/unlines.md)\n  - [words](basic/string/words.md)\n  - [unwords](basic/string/unwords.md)\n  - [toUpper](basic/string/toupper.md)\n  - [toLower](basic/string/tolower.md)\n  - [splitOn](basic/string/split-on.md)\n  - [splitOnRegex](basic/string/split-on-regex.md)\n  - [stripPrefix](basic/string/strip-prefix.md)\n  - [stripSuffix](basic/string/strip-suffix.md)\n  - [trim](basic/string/trim.md)\n- [types](basic/types/README.md)\n  - [empty](basic/types/empty.md)\n  - [is](basic/types/is.md)\n  - [maybe](basic/types/maybe.md)\n  - [either](basic/types/either.md)\n  - [pair](basic/types/pair.md)\n\n## Intermediate\n\n- [Logic](intermediate/logic/README.md)\n  - [Boolean](intermediate/logic/boolean.md)\n- Exercises\n  - [Given any strings, return the word count](intermediate/exercises/word-count.md)\n  - [Given any number, return the factorial (product of 1 to given number)](intermediate/exercises/factorial.md)\n  - [Given any strings, return the dotted abbreviation](intermediate/exercises/abbreviate.md)\n  - [Find localized url version for a given user](intermediate/exercises/user-url.md)\n\n## [Advance](advance/README.md)\n\n----------\n\n## Install \u0026 Run\n\nFrom inside script folder:\n\n```bash\nnpm i sanctuary\n```\n\nand to `Run` example:\n\n```bash\nnode script.js\n```\n\n----------\n\n## Acknowledgments\n\nTo All guys in [sanctuary chat room](https://gitter.im/sanctuary-js/sanctuary) who patiently answered the questions and provided understandable analogies and examples.\n\n----------\n\n### PRs are welcome","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousefvand%2Fsanctuary-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyousefvand%2Fsanctuary-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousefvand%2Fsanctuary-examples/lists"}