{"id":15629701,"url":"https://github.com/anko/eslisp-fancy-function","last_synced_at":"2026-03-18T17:36:21.435Z","repository":{"id":150122656,"uuid":"42683364","full_name":"anko/eslisp-fancy-function","owner":"anko","description":"eslisp macro: function expression with argument-splats and implicit return","archived":false,"fork":false,"pushed_at":"2018-07-16T02:40:10.000Z","size":165,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T19:14:41.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anko.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-09-17T21:38:43.000Z","updated_at":"2022-11-26T18:19:53.000Z","dependencies_parsed_at":"2023-04-16T09:17:00.148Z","dependency_job_id":null,"html_url":"https://github.com/anko/eslisp-fancy-function","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Feslisp-fancy-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Feslisp-fancy-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Feslisp-fancy-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Feslisp-fancy-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anko","download_url":"https://codeload.github.com/anko/eslisp-fancy-function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223325,"owners_count":20743168,"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-03T10:28:12.910Z","updated_at":"2026-01-07T21:49:37.007Z","avatar_url":"https://github.com/anko.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslisp-fancy-function [![](https://img.shields.io/npm/v/eslisp-fancy-function.svg?style=flat-square)][1] [![](https://img.shields.io/travis/anko/eslisp-fancy-function.svg?style=flat-square)][2] [![](https://img.shields.io/badge/eslisp_chat-gitter_%E2%86%92-blue.svg?style=flat-square)][3]\n\n\u003c!-- !test program\nsed 's/(require \"eslisp-fancy-function\")/(require \"..\\\\/..\\\\/..\\\\/index.js\")/' \\\n| ./node_modules/.bin/eslc \\\n| head -c -1\n--\u003e\n\nAn [eslisp][4] macro that works like an the usual `lambda` expression macro but\nalso\n\n-   parses *splats* (atoms starting with `...`) in the arguments and turns them\n    into appropriate variable assignments prepended to the function body, and\n-   implicitly returns the last thing in the body if it's an expression.\n\nNote that despite the name, this module is strictly a *function expressions*\n(`lambda`-ish) macro, not a function declaration.  I'll rearrange that\neventually.\n\n## Example\n\n\u003c!-- !test in example --\u003e\n\n    (macro fun (require \"eslisp-fancy-function\"))\n    (fun (a b ...c d) (* a b d))\n\n↓\n\n\u003c!-- !test out example --\u003e\n\n    (function (a, b) {\n        var c = Array.prototype.slice.call(arguments, 2, -1);\n        var d = arguments[arguments.length - 1];\n        return a * (b * d);\n    });\n\nSee [the tests][5] for fuller usage.\n\n## License\n\n[ISC][6].\n\n[1]: https://www.npmjs.com/package/eslisp-fancy-function\n[2]: https://travis-ci.org/anko/eslisp-fancy-function\n[3]: https://gitter.im/anko/eslisp\n[4]: https://www.npmjs.com/package/eslisp\n[5]: test.esl\n[6]: http://opensource.org/licenses/ISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Feslisp-fancy-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanko%2Feslisp-fancy-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Feslisp-fancy-function/lists"}