{"id":17210734,"url":"https://github.com/alexknauth/hash-lambda","last_synced_at":"2026-03-19T00:02:57.314Z","repository":{"id":15392561,"uuid":"18124318","full_name":"AlexKnauth/hash-lambda","owner":"AlexKnauth","description":"using hash-tables for rest-arguments that include keyword-arguments","archived":false,"fork":false,"pushed_at":"2022-07-23T16:37:54.000Z","size":965,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T00:33:43.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Racket","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/AlexKnauth.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}},"created_at":"2014-03-26T02:24:29.000Z","updated_at":"2022-01-07T15:12:08.000Z","dependencies_parsed_at":"2022-08-25T06:21:54.841Z","dependency_job_id":null,"html_url":"https://github.com/AlexKnauth/hash-lambda","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/AlexKnauth%2Fhash-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexKnauth%2Fhash-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexKnauth%2Fhash-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexKnauth%2Fhash-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexKnauth","download_url":"https://codeload.github.com/AlexKnauth/hash-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458710,"owners_count":20618697,"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-15T02:55:08.557Z","updated_at":"2025-10-20T04:43:41.430Z","avatar_url":"https://github.com/AlexKnauth.png","language":"Racket","readme":"hash-lambda\n===\n\ndocumentation: http://pkg-build.racket-lang.org/doc/hash-lambda-toc/index.html\n\nhash-lambdas allow you to create a \"rest argument\" see Declaring a Rest Argument that includes\nkeyword arguments. Instead of storing the arguments in a list, hash-lambda stores them in a\nhash table, where you can use (hash-ref args-hash 0), etc. to access by-position arguments,\nand (hash-ref args-hash '#:kw), etc. to access keyword arguments, or you can use\nhash-lambda/match and use match patterns for the arguments. \nYou can also use apply/hash to apply an args-hash to a function.\n\nExamples:\n```racket\n\u003e (require hash-lambda)\n\u003e (define my+\n    (hash-lambda/match\n     [(hash-table [0 a] [1 b])\n      (+ a b)]))\n\u003e (my+ 1 2)\n3\n\u003e (define/contract kinetic-energy (#:mass number? #:velocity number? . -\u003e . number?)\n    (hash-lambda/match\n     [(hash-table ['#:mass mass] ['#:velocity velocity])\n      (* 1/2 mass (sqr velocity))]))\n\u003e (kinetic-energy #:mass 2 #:velocity 1)\n1\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexknauth%2Fhash-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexknauth%2Fhash-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexknauth%2Fhash-lambda/lists"}