GithubHelp home page GithubHelp logo

klaudiosinani / doublie Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 5.0 234 KB

Doubly circular & linear linked lists for ES6

License: MIT License

JavaScript 87.98% TypeScript 12.02%
doubly es6 linked list singly typescript

doublie's People

Contributors

klaudiosinani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

doublie's Issues

Progress Tracker: Implementation of `Linear` class methods

Description

The following issue will act as a progress tracking thread, regarding the implementation of the exposed Linear class methods:

Methods

  • Linear#append(...values)
  • Linear#filter(fn)
  • Linear#forEach(fn)
  • Linear#get(index)
  • Linear#join(separator)
  • Linear#reduce(fn, accumulator)
  • Linear#map(fn)
  • Linear#node(index)
  • Linear#prepend(...values)
  • Linear#remove(index)
  • Linear#reverse()
  • Linear#set({value, index})
  • Linear#toArray()
  • Linear#reduceRight(fn, accumulator)
  • Linear#insert({value, index})

Progress Tracker: Implementation of `Circular` class methods

Description

The following issue will act as a progress tracking thread, regarding the implementation of the exposed Circular class methods:

Methods

  • Circular#append(...values)
  • Circular#filter(fn)
  • Circular#forEach(fn)
  • Circular#get(index)
  • Circular#join(separator)
  • Circular#reduce(fn, accumulator)
  • Circular#map(fn)
  • Circular#node(index)
  • Circular#prepend(...values)
  • Circular#remove(index)
  • Circular#reverse()
  • Circular#set({value, index})
  • Circular#toArray()
  • Circular#reduceRight(fn, accumulator)
  • Circular#insert({value, index})
  • Circular#toLinear()

(typescript) circular class node type .next and .prev possibly null

Is your feature request related to a problem? Please describe.
In the typescript definitions, the node properties .next and .prev are of type Instance<T> | null, even for circular doubly linked list nodes (which uses the same type), meaning that using it in strict mode involves a lot of null checks that this type should not need.

Describe the solution you'd like
The node properties in this case should only be of type Instance<T>.

Additional context
n/a

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.