{"id":35118615,"url":"https://github.com/solsw/seq2linq","last_synced_at":"2026-01-16T19:39:57.795Z","repository":{"id":328919561,"uuid":"1117262124","full_name":"solsw/seq2linq","owner":"solsw","description":"Go implementation of .NET's LINQ to Objects over sequences of pairs of values.","archived":false,"fork":false,"pushed_at":"2026-01-13T07:21:16.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T23:03:55.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/solsw.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-16T04:13:35.000Z","updated_at":"2026-01-13T07:21:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd834252-807b-406c-8091-54d508c8ed3a","html_url":"https://github.com/solsw/seq2linq","commit_stats":null,"previous_names":["solsw/seq2linq"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/solsw/seq2linq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fseq2linq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fseq2linq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fseq2linq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fseq2linq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solsw","download_url":"https://codeload.github.com/solsw/seq2linq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solsw%2Fseq2linq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-27T22:54:27.064Z","updated_at":"2026-01-16T19:39:57.755Z","avatar_url":"https://github.com/solsw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seq2linq\n[![Go Reference](https://pkg.go.dev/badge/github.com/solsw/seq2linq.svg)](https://pkg.go.dev/github.com/solsw/seq2linq)\n\n**seq2linq** is Go implementation of .NET's \n[LINQ to Objects](https://learn.microsoft.com/dotnet/csharp/programming-guide/concepts/linq/linq-to-objects)\nover [sequences of pairs of values](https://pkg.go.dev/iter#Seq2).\n(See also: [Language Integrated Query](https://en.wikipedia.org/wiki/Language_Integrated_Query),\n[LINQ](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/),\n[Enumerable Class](https://learn.microsoft.com/dotnet/api/system.linq.enumerable).)\n\nFor Go implementation of\n[LINQ to Objects](https://learn.microsoft.com/dotnet/csharp/programming-guide/concepts/linq/linq-to-objects)\nover [sequences of individual values](https://pkg.go.dev/iter#Seq)\nsee [**go2linq**](https://github.com/solsw/go2linq) package.\n\n---\n\n## Installation\n\n```\ngo get github.com/solsw/seq2linq\n```\n\n### Quick and easy example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/solsw/iterhelper\"\n\t\"github.com/solsw/seq2linq\"\n)\n\nfunc main() {\n\tseq2, _ := iterhelper.Var2[int, string](1, \"one\", 2, \"two\", 3, \"three\",\n\t\t4, \"four\", 5, \"five\", 6, \"six\", 7, \"seven\", 8, \"eight\", 9, \"nine\", 10, \"ten\")\n\tfilter, _ := seq2linq.Where(\n\t\tseq2,\n\t\tfunc(i int, s string) bool { return i%3 == 2 || s[0] == 't' },\n\t)\n\tprojection, _ := seq2linq.Select(\n\t\tfilter,\n\t\tfunc(i int, s string) (string, int) { return string(s[0]) + string(s[len(s)-1]), i * i },\n\t)\n\tfor s, i := range projection {\n\t\tfmt.Println(s, i)\n\t}\n}\n```\n\nThe previous code outputs the following:\n```\nto 4\nte 9\nfe 25\net 64\ntn 100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolsw%2Fseq2linq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolsw%2Fseq2linq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolsw%2Fseq2linq/lists"}