Skip to content

konkked/Underscore.cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Chris Keyser
Feb 10, 2017
02668b9 · Feb 10, 2017
Oct 12, 2016
Oct 20, 2016
Sep 21, 2016
Oct 12, 2016
Aug 6, 2016
Jan 26, 2015
Sep 30, 2015
Jun 26, 2016
Jun 28, 2016
Feb 10, 2017
Feb 18, 2016
Oct 12, 2016

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