{"id":30654011,"url":"https://github.com/alastairlundy/enhancedlinq","last_synced_at":"2026-04-18T09:31:17.577Z","repository":{"id":308932343,"uuid":"1022716264","full_name":"alastairlundy/EnhancedLinq","owner":"alastairlundy","description":"Additional LINQ style Deferred and Immediate enumeration mode extension methods for .NET . ","archived":false,"fork":false,"pushed_at":"2026-02-27T11:00:13.000Z","size":1423,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-27T15:53:23.927Z","etag":null,"topics":["csharp","dotnet","dotnet-library","linq","linq-extensions"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alastairlundy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-07-19T17:08:39.000Z","updated_at":"2026-02-27T11:00:15.000Z","dependencies_parsed_at":"2025-08-21T15:55:08.719Z","dependency_job_id":"3c8edde7-5634-4d64-9dba-0bc475264e5e","html_url":"https://github.com/alastairlundy/EnhancedLinq","commit_stats":null,"previous_names":["alastairlundy/extralinq","alastairlundy/enhancedlinq"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/alastairlundy/EnhancedLinq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FEnhancedLinq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FEnhancedLinq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FEnhancedLinq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FEnhancedLinq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alastairlundy","download_url":"https://codeload.github.com/alastairlundy/EnhancedLinq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alastairlundy%2FEnhancedLinq/sbom","scorecard":{"id":1238269,"data":{"date":"2025-09-28T14:22:08Z","repo":{"name":"github.com/alastairlundy/EnhancedLinq","commit":"ddeed01557678d7779da6c6c0c5836ebea04763e"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":6.9,"checks":[{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Code-Review","score":0,"reason":"Found 1/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-drafter.yml:24","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/release-drafter.yml:18","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   5 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"SAST","score":9,"reason":"SAST tool is not run on all commits -- score normalized to 9","details":["Warn: 19 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Branch-Protection","score":6,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is required - but no codeowners file found in repo","Info: 'last push approval' is required to merge on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"9 out of 9 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-09-28T16:28:14.265Z","repository_id":308932343,"created_at":"2025-09-28T16:28:14.265Z","updated_at":"2025-09-28T16:28:14.265Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"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":["csharp","dotnet","dotnet-library","linq","linq-extensions"],"created_at":"2025-08-31T08:10:42.652Z","updated_at":"2026-04-18T09:31:17.567Z","avatar_url":"https://github.com/alastairlundy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EnhancedLinq\nThis library adds Additional LINQ style Deferred execution and Immediate enumeration mode extension methods for .NET.\n\nEnhancedLinq requires dependant projects to use C# language version 14 or newer for EnhancedLinq to work. \n\n## 🚀 Included Methods\nFor a comprehensive list of included methods, check out the following resources:\n\n- [EnhancedLinq Methods](./docs/Methods/EnhancedLinq.md) [![NuGet](https://img.shields.io/nuget/v/EnhancedLinq.svg)](https://www.nuget.org/packages/EnhancedLinq/)  [![NuGet](https://img.shields.io/nuget/dt/EnhancedLinq.svg)](https://www.nuget.org/packages/EnhancedLinq/)\n- [EnhancedLinqAsync Methods](./docs/Methods/EnhancedLinq.md) [![NuGet](https://img.shields.io/nuget/v/EnhancedLinq.Async.svg)](https://www.nuget.org/packages/EnhancedLinq.Async/)  [![NuGet](https://img.shields.io/nuget/dt/EnhancedLinq.Async.svg)](https://www.nuget.org/packages/EnhancedLinq.Async/)\n- [EnhancedLinq.Memory Methods](./docs/Methods/EnhancedLinq.Memory.md) [![NuGet](https://img.shields.io/nuget/v/EnhancedLinq.Memory.svg)](https://www.nuget.org/packages/EnhancedLinq.Memory/)  [![NuGet](https://img.shields.io/nuget/dt/EnhancedLinq.Memory.svg)](https://www.nuget.org/packages/EnhancedLinq.Memory/)\n  \n__Note__: The ``EnhancedLinq.MsExtensions`` package has been merged into the base ``EnhancedLinq`` package. To use ``EnhancedLinq.MsExtensions``, install the main ``EnhancedLinq`` package.\n\n## 📦 NuGet Packages\n\n**EnhancedLinq** comes with several packages tailored to your needs:\n\n- **`EnhancedLinq`**: The core package that enhances your LINQ experience. Also includes ``MsExtensions`` sub-namespace for LINQ style methods targetting ``Microsoft.Extensions.Primitives`` types.\n- **`EnhancedLinq.Async`**: The IAsyncEnumerable supporting version of EnhancedLinq.\n- **`EnhancedLinq.Memory`**: This package is specifically for `Span\u003cT\u003e` and `Memory\u003cT\u003e`, providing helpful immediate mode extensions.\n\n### 🛠️ Installing EnhancedLinq\n\nGetting started with **EnhancedLinq** is easy! You can install the packages using the .NET SDK CLI, your IDE's package manager, or directly from the NuGet website.\n\n| Package Id          | NuGet Link                                                                  | .NET SDK CLI Command                     |\n|---------------------|-----------------------------------------------------------------------------|------------------------------------------|\n| EnhancedLinq        | [EnhancedLinq NuGet](https://nuget.org/packages/EnhancedLinq)               | `dotnet add package EnhancedLinq`        |\n| EnhancedLinq.Async  | [EnhancedLinq NuGet](https://nuget.org/packages/EnhancedLinq.Async)         | `dotnet add package EnhancedLinq.Async`  |\n| EnhancedLinq.Memory | [EnhancedLinq.Memory NuGet](https://nuget.org/packages/EnhancedLinq.Memory) | `dotnet add package EnhancedLinq.Memory` |\n\n## 📖 Usage\nHere are some examples demonstrating how to use some methods provided by EnhancedLinq.\n\n### Deferred Execution Examples\n\n**ElementsAt**\nThis example shows how to find the elements at a given sequence of indices.\n\n```csharp\n\n        var fruits = [\"Apple\", \"Banana\", \"Cherry\", \"Date\", \"Elderberry\" ];\n        var indices = [1, 3]; // We want to retrieve \"Banana\" and \"Date\"\n        \n        IEnumerable\u003cstring\u003e selectedFruits = fruits.ElementsAt(indices);\n\n        Console.WriteLine(\"Selected Fruits:\");\n        foreach (string fruit in selectedFruits)\n        {\n            Console.WriteLine(fruit); // Outputs: Banana, Date\n        }\n```\n\n**IndicesOf**\nThis example shows how to find all the indices of a specific element in an IEnumerable\u003cT\u003e.\n```csharp\n\n        var numbers = [ 1, 2, 3, 2, 4, 2, 5 ];\n        int target = 2; // We want to find the indices of the number 2\n\n        IEnumerable\u003cint\u003e indices = numbers.IndicesOf(target);\n\n        Console.WriteLine(\"Indices of target element:\");\n        foreach (var index in indices)\n        {\n            Console.WriteLine(index); // Outputs: 1, 3, 5\n        }\n```\n\n### Immediate Enumeration Mode Examples\n\n**ContainsDuplicates**\nThis example shows how to check if an IEnumerable\u003cT\u003e contains any duplicate elements.\n\n```csharp\n        var fruits = [\"Apple\", \"Banana\", \"Cherry\", \"Apple\" ]; // Contains a duplicate\n\n        bool hasDuplicates = fruits.ContainsDuplicates();\n\n        Console.WriteLine($\"Does the list contain duplicates? {hasDuplicates}\"); // Output: True\n```\n\n**IndexOf**\nThis example shows how to find the index of the first element that matches a predicate in an IEnumerable\u003cT\u003e.\n```csharp\n        var numbers = new List\u003cint\u003e { 10, 20, 30, 40, 50 };\n\n        // Define a predicate to find the first number greater than 25\n        Func\u003cint, bool\u003e predicate = n =\u003e n \u003e 25;\n\n        int index = numbers.IndexOf(predicate);\n\n        Console.WriteLine($\"Zero based index of the first element greater than 25: {index}\"); // Output: 2\n```\n\n## 🏗️ Building\n\nTo build **EnhancedLinq** from source, follow these steps:\n\n1. Clone the repository.\n2. Open the solution in your preferred IDE or Code Editor.\n3. Build the desired project to restore dependencies and compile the project.\n\n## 🤝 Contributing\nI welcome contributions. If you have ideas for new features, improvements, or bug fixes, please check out the [contributing guidelines](./CONTRIBUTING.md) for more information.\n\n## 📜 License\n\n**EnhancedLinq** is licensed under the **MPL 2.0 license**. Feel free to use and modify EnhancedLinq according to the terms of the license.\n\n## ❓ Questions?\n\nIf you have any questions or experience any issues, please open a discussion in the [repository's GitHub issues page](https://github.com/alastairlundy/enhancedlinq/discussions).\n\n## 🔄 Alternatives\n\nWhile **EnhancedLinq** is a powerful tool, you may wish to explore these alternatives:\n\n- [SuperLinq](https://github.com/viceroypenguin/SuperLinq)\n- [MoreLinq](https://github.com/morelinq/MoreLINQ)\n\n### Why ``EnhancedLinq`` was created\nIn no particular order, these are some of the reasons why ``EnhancedLinq`` was created:\n\n* To move DotExtension LINQ style methods/operations to a separate library.\n* Hardly any .NET libraries exist that bring Linq style methods/operations to Span/Memory.\n* Hardly any .NET libraries exist that bring Linq style methods/operations to StringSegment and other ``Microsoft.Extensions.Primitives`` package types.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falastairlundy%2Fenhancedlinq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falastairlundy%2Fenhancedlinq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falastairlundy%2Fenhancedlinq/lists"}