Giter Site home page Giter Site logo

nonemptyenumerable's Introduction

A simple NonEmptyEnumerable data structure for C#

nonemptyenumerable's People

Contributors

ntreu14 avatar

Stargazers

Evan Hicks avatar

Watchers

James Cloos avatar  avatar

nonemptyenumerable's Issues

Add documentation for methods on `NonEmptyEnumerable`

Add documentation for each method on the NonEmptyEnumerable.

Add a MD under a new directory called /docs that includes a brief description of what each method on the NonEmptyEnumerable class does with an example.

Add a `Scan` method.

Add an Scan method to the NonEmptyEnumerable class.

Scan is similar to Aggregate, but it remembers the state after each time the accumulation function is applied.

It should have a method signature like:

public NonEmptyEnumerable<TResult> Scan<TResult>(Func<TResult, T, TResult> accumulator, TResult state)

Add appropriate unit/property based tests.

Update the documentation as necessary.

Add a `Reverse` method.

Currently, reversing a NonEmptyEnumerable<T> will return an IEnumerable<T>.

Let's add an overloaded method called Reverse that returns a NonEmptyEnumerable<T>.

Add appropriate unit/property based tests.

Update the documentation as necessary.

Add `Sort` Method.

Let's add an method called Sort that returns a NonEmptyEnumerable<T>.

Add appropriate unit/property based tests.

Update the documentation as necessary.

Upgrade project to .NET 6

.NET 6 has been officially released!

Let's upgrade this project to .NET 6 and release a new version on Nuget.

Add a `Cons` method.

Add a method to the NonEmptyEnumerable class called Cons that adds a new element as the head of the Enumerable.

Add appropriate unit/property based tests.

Update the documentation as necessary.

Update project and specs to use .NET 5.0

Once all the other issues have been resolved and released as a Nuget package, upgrade the csproj and fsproj to use .NET 5.0 and release that as it's own Nuget package.

Add a `Partition` method.

Let's add an method called Partition that takes a predicate Func<T, bool> returns a Tuple<List<T>, List<T>>.

The first List in the tuple should be elements for that pass (return true) the predicate function and the second list in the tuple should be for elements that fail (return false).

The elements should appear in order in which the appeared in the original NonEmptyEnumerable<T>

It should have method signature like:

public Tuple<List<T>, List<T>> Partition(Func<T, bool> predicate)

Add appropriate unit/property based tests.

Update the documentation as necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.