{"id":13442779,"url":"https://github.com/gregcman/utility","last_synced_at":"2025-03-20T15:30:57.519Z","repository":{"id":78251427,"uuid":"147253625","full_name":"gregcman/utility","owner":"gregcman","description":"Yet another personal utility library","archived":false,"fork":false,"pushed_at":"2019-01-19T08:01:07.000Z","size":24,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T03:41:57.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","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/gregcman.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}},"created_at":"2018-09-03T21:06:36.000Z","updated_at":"2020-02-08T18:41:45.000Z","dependencies_parsed_at":"2023-03-13T20:14:04.624Z","dependency_job_id":null,"html_url":"https://github.com/gregcman/utility","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/gregcman%2Futility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregcman%2Futility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregcman%2Futility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregcman%2Futility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregcman","download_url":"https://codeload.github.com/gregcman/utility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221772553,"owners_count":16878127,"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-07-31T03:01:50.555Z","updated_at":"2024-10-28T03:31:02.236Z","avatar_url":"https://github.com/gregcman.png","language":"Common Lisp","funding_links":[],"categories":["Common Lisp"],"sub_categories":[],"readme":"# utility Manual\n\n## Description\n\nA collection of useful macros and functions I use in almost every project.\n\n## Installing utility\n\n\nWe can use [QuickLisp](https://www.quicklisp.org/beta/ \"QuickLisp\") to load utility:\n```lisp\n(ql:quickload :utility)\n```\n\n## Some Things inside\n\n- [macro] ```(DOHASH ((K V) HASH \u0026body BODY))```\n\n    - Iterate through the contents of a hash table.\n\n- [macro] ```(ETOUQ (\u0026body BODY))```\n\n    - Expand into the macro-time evaluation of BODY.\n    \n```lisp\n(etouq (list (car (cons 'car 0))\n\t\t      `(quote ,(cdr (list 0 1 2)))))\n=\u003e \n1 \n```\n\n- [macro] ```(DOBOX ((\u0026rest INTERVAL-FORMS) \u0026rest BODY))```\n\n    - Iterate through all coordinates bounded by the dimensions specified in INTERVAL-FORMS.\n\nExample:\n\n```lisp\n(dobox ((x 0 2) (y 0 3)) (print (list x y)))\n=\u003e \n(0 0) \n(0 1) \n(0 2) \n(1 0) \n(1 1) \n(1 2)\n```\n\n- [function] ```(KEYWORDIFY (SYM))```\n\n    - Intern SYM in the keyword package. SYM is a string designator.  \n\n- [macro] ```(ANY (\u0026body BODY))```\n\n    - Expand into a random element of body. Most useful to denote code invariants.\n    \n- [function] ```(FLOATIFY (X))```\n\n    - Coerce X to type 'SINGLE-FLOAT\n    \n## License Information\n\nThis library is released under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregcman%2Futility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregcman%2Futility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregcman%2Futility/lists"}