{"id":13740701,"url":"https://github.com/bwireman/gleither","last_synced_at":"2025-05-16T12:31:57.539Z","repository":{"id":229376111,"uuid":"776579456","full_name":"bwireman/gleither","owner":"bwireman","description":"A small data-structure for representing Left or Right. ↔️","archived":false,"fork":false,"pushed_at":"2025-04-13T15:47:53.000Z","size":39,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T04:48:07.490Z","etag":null,"topics":["beam","either","elixir","erlang","gleam","javascript","monad"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/gleither","language":"Gleam","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/bwireman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-23T22:25:05.000Z","updated_at":"2025-04-13T15:47:57.000Z","dependencies_parsed_at":"2025-01-20T22:38:32.618Z","dependency_job_id":"d6d44e87-d740-4dfc-98f7-1cce1ac0f1a4","html_url":"https://github.com/bwireman/gleither","commit_stats":null,"previous_names":["bwireman/gleither"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fgleither","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fgleither/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fgleither/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fgleither/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwireman","download_url":"https://codeload.github.com/bwireman/gleither/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254530274,"owners_count":22086581,"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":["beam","either","elixir","erlang","gleam","javascript","monad"],"created_at":"2024-08-03T04:00:51.398Z","updated_at":"2025-05-16T12:31:52.529Z","avatar_url":"https://github.com/bwireman.png","language":"Gleam","funding_links":[],"categories":["Packages"],"sub_categories":["Data Structures"],"readme":"# Gleither ↔️\n\nA small data-structure for representing an Either Monad. Written in the excellent [gleam ✨](https://gleam.run/) language. Supporting both Erlang \u0026 Javascript targets\n\n[![test](https://github.com/bwireman/gleither/actions/workflows/test.yml/badge.svg)](https://github.com/bwireman/gleither/actions/workflows/test.yml)\n[![commits](https://img.shields.io/github/last-commit/bwireman/gleither)](https://github.com/bwireman/gleither/commit/main)\n[![mit](https://img.shields.io/github/license/bwireman/gleither?color=brightgreen)](https://github.com/bwireman/gleither/blob/main/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)](http://makeapullrequest.com)\n\nDocs: https://hexdocs.pm/gleither/\n\n```sh\ngleam add gleither\n```\n```gleam\nimport gleither.{Left, Right, map, get}\n\npub fn main() {\n  Right(1)\n  |\u003e map(fn(x) { x + 1 })\n  |\u003e get()\n  // Some(2)\n}\n\nfn ex() {\n  Left(1)\n  |\u003e map(fn(x) { x + 1 })\n  |\u003e get()\n  // Some(1)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Fgleither","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwireman%2Fgleither","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Fgleither/lists"}