{"id":22375864,"url":"https://github.com/stylewarning/letrec","last_synced_at":"2026-02-11T09:07:46.355Z","repository":{"id":236852840,"uuid":"625691912","full_name":"stylewarning/letrec","owner":"stylewarning","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-09T22:21:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T08:59:09.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stylewarning.png","metadata":{"files":{"readme":"README","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":"2023-04-09T22:08:19.000Z","updated_at":"2023-04-09T22:22:00.000Z","dependencies_parsed_at":"2024-04-29T00:08:21.694Z","dependency_job_id":"2cbe33bd-7594-46a6-89bf-740e5d2f28f1","html_url":"https://github.com/stylewarning/letrec","commit_stats":null,"previous_names":["stylewarning/letrec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stylewarning/letrec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fletrec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fletrec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fletrec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fletrec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylewarning","download_url":"https://codeload.github.com/stylewarning/letrec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fletrec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29330858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-04T21:28:01.691Z","updated_at":"2026-02-11T09:07:46.338Z","avatar_url":"https://github.com/stylewarning.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"                                LETREC\n                                ======\n\n                             Robert Smith\n\n\nINTRODUCTION\n------------\n\nLETREC:LETREC is a macro which aims to imitate Scheme's letrec\nform. It is a useful construct for functional programming in Common\nLisp, where you have function-producing forms which need to be\nfunctionally bound to a symbol.\n\n\nEXAMPLE\n-------\n\nThe following code\n\n  (defun multiplier (n)\n    (lambda (x) (* n x)))\n\n  (letrec ((double (multiplier 2))\n           (triple (multiplier 3)))\n    (double (triple 5)))\n\nproduces\n\n  30.\n\nAnother example:\n\n  (letrec:letrec ((double (multiplier 2)))\n    (double (funcall #'double 5)))\n\nproduces\n\n  20.\n\n\nISSUES\n------\n\nUnforunately, the macro isn't a very efficient implementation. There\nis a level of indirection with the function calling. Essentially, a\nLETREC with the binding\n\n  (name fn)\n\nis expanded to a LABELS binding of the form\n\n  (name (\u0026rest args)\n    (apply fn args))\n\nwhich is somewhat abysmal.\n\nPatches are welcome for implementation-specific ways of implementing\nthe macro.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylewarning%2Fletrec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylewarning%2Fletrec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylewarning%2Fletrec/lists"}