Skip to content

konkked/Underscore.cs

Repository files navigation

Underscore.cs

Started out as a port of the open source JavaScript Library Underscore.js to C#, but now is really a library (or helper object) inspired by underscore.js

Getting Started

Solution is available as a NuGet package

Install-Package Underscore.cs

An overview of the project's modules and capabilities can be found here.

More specific API documentation with examples for each function can be found in the documents here.

Here is a simple example of using the library's list chunking and random:

            var chainOCommand = _approvers.Zip(
                _.List.Chunk(_workers,
                    _.Utility.Random(2, 3)
                    ),
                (approver, workerChunk) => new
                {
                    Approver = approver,
                    Workers = workerChunk
                })
                .ToDictionary(
                    a => a.Approver,
                    a => a.Workers
             );

About

C# Library inspired by JavaScript Library Underscore.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages