{"id":20756479,"url":"https://github.com/basiliscos/ex-make_enumerable","last_synced_at":"2025-04-28T19:36:19.751Z","repository":{"id":57519931,"uuid":"116422030","full_name":"basiliscos/ex-make_enumerable","owner":"basiliscos","description":"Makes your defstructs enumerable","archived":false,"fork":false,"pushed_at":"2018-01-06T11:30:48.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T20:23:17.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/basiliscos.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":"2018-01-05T20:00:52.000Z","updated_at":"2023-09-13T17:06:07.000Z","dependencies_parsed_at":"2022-09-05T09:41:25.702Z","dependency_job_id":null,"html_url":"https://github.com/basiliscos/ex-make_enumerable","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/basiliscos%2Fex-make_enumerable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basiliscos%2Fex-make_enumerable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basiliscos%2Fex-make_enumerable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basiliscos%2Fex-make_enumerable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basiliscos","download_url":"https://codeload.github.com/basiliscos/ex-make_enumerable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251376392,"owners_count":21579611,"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-11-17T09:32:40.915Z","updated_at":"2025-04-28T19:36:19.708Z","avatar_url":"https://github.com/basiliscos.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MakeEnumerable\n\n\n[![Travis](https://img.shields.io/travis/basiliscos/ex-make_enumerable.svg)](https://travis-ci.org/basiliscos/ex-make_enumerable)\n[![Hex.pm Version](http://img.shields.io/hexpm/v/make_enumerable.svg?style=flat)](https://hex.pm/packages/make_enumerable)\n[![license](https://img.shields.io/github/license/basiliscos/ex-make_enumerable.svg)](https://github.com/basiliscos/ex-make_enumerable/blob/master/LICENSE)\n\nMakes your structures enumerable!\n\nThe `MakeEnumerable` module injects `defimpl Enumerable` for your structs,\nas structs are basically `maps` with special tag (member) `__struct__`.\nThe module hides the tag `__struct__` and delegates all other members\nto map to be `Enumerable`.\n\n```elixir\ndefmodule Bar do\n  use MakeEnumerable\n  defstruct foo: \"a\", baz: 10\nend\n\niex\u003e import Bar\niex\u003e Enum.map(%Bar{}, fn({k, v}) -\u003e {k, v} end)\n[baz: 10, foo: \"a\"]\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `make_enumerable` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:make_enumerable, \"~\u003e 0.0.1\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/make_enumerable](https://hexdocs.pm/make_enumerable).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasiliscos%2Fex-make_enumerable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasiliscos%2Fex-make_enumerable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasiliscos%2Fex-make_enumerable/lists"}