{"id":16191054,"url":"https://github.com/maxmellon/compositter","last_synced_at":"2025-04-07T14:38:18.000Z","repository":{"id":86954207,"uuid":"121604494","full_name":"MaxMEllon/compositter","owner":"MaxMEllon","description":"A library provide the higher-order function.","archived":false,"fork":false,"pushed_at":"2018-02-18T13:45:26.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T17:16:01.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/MaxMEllon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-02-15T08:05:03.000Z","updated_at":"2018-02-15T08:16:41.000Z","dependencies_parsed_at":"2023-05-29T23:15:10.146Z","dependency_job_id":null,"html_url":"https://github.com/MaxMEllon/compositter","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/MaxMEllon%2Fcompositter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fcompositter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fcompositter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fcompositter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxMEllon","download_url":"https://codeload.github.com/MaxMEllon/compositter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247671853,"owners_count":20976842,"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":[],"created_at":"2024-10-10T07:44:47.718Z","updated_at":"2025-04-07T14:38:17.979Z","avatar_url":"https://github.com/MaxMEllon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"compositter\n---\n\nA library provide a [higher-order function](https://en.wikipedia.org/wiki/Higher-order_function) in javascript.\n\nAbout\n---\n\nF# provide the `\u003e\u003e` operator. `\u003e\u003e` operator is able to generate higher-order function. \u003cbr /\u003e\nI want to simulate `\u003e\u003e` operator in javascript.\n\n- in fsharp\n\n```fsharp\nlet function1 x = x + 1\nlet function2 x = x * 5\n\nlet f = function1 \u003e\u003e function2\nf(10) //=\u003e 55\n```\n\n- in javascript\n\n```javascript\nconst compositter = require('compositter')\n\nconst function1 = x =\u003e x + 1\nconst function2 = x =\u003e x * 5\n\nconst f = compositter([function1, function2])\nf(10) //=\u003e 55\n```\n\nLICENSE\n---\n\n[MIT](./LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Fcompositter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmellon%2Fcompositter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Fcompositter/lists"}