{"id":32182066,"url":"https://github.com/p14n/lets-record","last_synced_at":"2025-10-21T22:59:05.687Z","repository":{"id":62433406,"uuid":"254649164","full_name":"p14n/lets-record","owner":"p14n","description":"Capture values of a let form for analysis","archived":false,"fork":false,"pushed_at":"2021-10-29T09:45:39.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T22:58:15.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/p14n.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}},"created_at":"2020-04-10T14:04:10.000Z","updated_at":"2021-10-29T09:45:42.000Z","dependencies_parsed_at":"2022-11-01T21:01:24.052Z","dependency_job_id":null,"html_url":"https://github.com/p14n/lets-record","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/p14n/lets-record","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p14n%2Flets-record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p14n%2Flets-record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p14n%2Flets-record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p14n%2Flets-record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p14n","download_url":"https://codeload.github.com/p14n/lets-record/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p14n%2Flets-record/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280348062,"owners_count":26315368,"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-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2025-10-21T22:59:03.228Z","updated_at":"2025-10-21T22:59:05.675Z","avatar_url":"https://github.com/p14n.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lets-record\n\nProvides the letr form to record all symbol bindings in an atom.\n\n[![Clojars Project](https://img.shields.io/clojars/v/lets-record.svg)](https://clojars.org/lets-record)\n![CI](https://github.com/p14n/lets-record/workflows/CI/badge.svg)\n\n## Why?\n\nWhen performing complex calculations, if the result is not as expected it can be useful to see the interim \"working out\".  For example:\n\n```clojure\n(let [days (- end-days start-days)\n      years (/ days 365)\n      amount (* price quanity)\n      period-rate (* rate years)\n      interest (* period-rate amount)]\n  interest) --\u003e 0.5\n```\n\nIf the amount of interest charged as incorrect, it would be useful to see what the other values were - is the number of days incorrect?  Or perhaps the amount?\n\nUsing the letr form:\n```clojure\n(def record (atom []))\n\n(letr record \n     [days (- end-days start-days)\n      years (/ days 365)\n      amount (* price quanity)\n      period-rate (* rate years)\n      interest (* period-rate amount)]\n  interest) --\u003e 0.5\n\n@record --\u003e [{:days 365 :years 1 :amount 10 :period-rate 0.05 :interest 0.5}]\n```\nwe can access a map of those values from the `record` atom.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp14n%2Flets-record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp14n%2Flets-record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp14n%2Flets-record/lists"}