{"id":32171327,"url":"https://github.com/bakenezumi/memoz","last_synced_at":"2025-10-21T17:48:16.052Z","repository":{"id":57524761,"uuid":"96396486","full_name":"bakenezumi/memoz","owner":"bakenezumi","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-06T08:41:06.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T19:51:38.733Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/bakenezumi.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":"2017-07-06T06:32:25.000Z","updated_at":"2022-10-20T12:30:41.000Z","dependencies_parsed_at":"2022-08-26T03:31:10.737Z","dependency_job_id":null,"html_url":"https://github.com/bakenezumi/memoz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bakenezumi/memoz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakenezumi%2Fmemoz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakenezumi%2Fmemoz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakenezumi%2Fmemoz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakenezumi%2Fmemoz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakenezumi","download_url":"https://codeload.github.com/bakenezumi/memoz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakenezumi%2Fmemoz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280307061,"owners_count":26308483,"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":["elixir"],"created_at":"2025-10-21T17:48:12.914Z","updated_at":"2025-10-21T17:48:16.044Z","avatar_url":"https://github.com/bakenezumi.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MemoZ\n\nMemoZ run recursive while memoizing anonymous function.\nMemoLoop is a macro to simplify it.\n\n## Installation\n\nAdding `memoz` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:memoz, \"~\u003e 0.2.0\"}]\nend\n```\n\n## Example\n\nfunction version\n\n```elixir\nMemoZ.init(fn f -\u003e fn\n  0 -\u003e 0\n  1 -\u003e 1\n  x -\u003e f.(x-1) + f.(x-2)\nend end).(100) #=\u003e 354224848179261915075\n```\n\nmacro version\n\n```elixir\nimport MemoLoop\nloop 100 do\n  0 -\u003e 0\n  1 -\u003e 1\n  x -\u003e recur(x-1) + recur(x-2)\nend #=\u003e 354224848179261915075\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakenezumi%2Fmemoz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakenezumi%2Fmemoz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakenezumi%2Fmemoz/lists"}