{"id":13507342,"url":"https://github.com/hamiltop/structurez","last_synced_at":"2025-09-11T23:38:52.779Z","repository":{"id":19644609,"uuid":"22896996","full_name":"hamiltop/structurez","owner":"hamiltop","description":"A playground for data structures in Elixir","archived":false,"fork":false,"pushed_at":"2015-09-09T05:52:31.000Z","size":156,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T06:18:04.188Z","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/hamiltop.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":"2014-08-13T00:25:58.000Z","updated_at":"2024-07-15T09:56:23.000Z","dependencies_parsed_at":"2022-09-26T18:51:19.558Z","dependency_job_id":null,"html_url":"https://github.com/hamiltop/structurez","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamiltop/structurez","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltop%2Fstructurez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltop%2Fstructurez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltop%2Fstructurez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltop%2Fstructurez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamiltop","download_url":"https://codeload.github.com/hamiltop/structurez/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamiltop%2Fstructurez/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263644383,"owners_count":23493906,"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-08-01T02:00:31.566Z","updated_at":"2025-07-05T01:37:33.699Z","avatar_url":"https://github.com/hamiltop.png","language":"Elixir","funding_links":[],"categories":["Algorithms and Data structures"],"sub_categories":[],"readme":"Structurez\n==========\n\nA playground for data structures\n\n### `Treeset`\nAn ordered set wrapping `:gb_sets`\n\n### `AgentDict`\nA dict backed by an Agent. WARNING: This should make you cringe. It's essentially a mutable Dict. Only use this when you need concurrent access. There are a lot of other terrible ways to use it.\n\n### `TCPClient.stream/1`\n`Streamz.Net.TCPClient.stream/1` accepts a keyword list with `:host` and `:port` set. It will connect the the host and port and supports Enumerable and Collectable. This enables a bunch of cool things.\n\n#### Connecting:\n\n```elixir\nn = TCPClient.stream([host: \"localhost\", port: 4444])\n```\n\n#### Reading data:\n\n```elixir\nn |\u003e Enum.each \u0026IO.inspect(\u00261)\n```\n\n#### Writing data:\n\n```elixir\n[\"Hello\", \"World\"] |\u003e Enum.into(n)\n```\n\n#### Echo Client (writes any data it receives back to the server):\n\n```elixir\nn |\u003e Enum.into(n)\n```\n\n## Up Next\nThere are tons of possibilities. Here's what is on the current radar.\n\n- `TCPServer/1` - A server version of `TCPClient`\n- `UDPClient/1` - A UDP version of `TCPClient`\n- `UDPServer/1` - A server version of `UDPClient`\n- `WebSockets.stream/1` - Bidirection stream for a websocket connection.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamiltop%2Fstructurez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamiltop%2Fstructurez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamiltop%2Fstructurez/lists"}