Code Monkey home page Code Monkey logo

idris-containers's Introduction

Containers for Idris

This packages provides containers not defined in Idris `base`, `prelude`, or `contrib` and are for use in Idris programmes. They are built:

primarily with existence in mind rather than a dependently typed construction. The latter may will come later.

If you would like to contribute please see CONTRIBUTING.md that offers some guidance. At the moment I am doing some work in the dev branch and master is the stable version.

Motivation

The ordered motivation behind these data structures are:

  1. My work requires the use of data structures that may not already be in the Idris base package.
  2. I do not like the implementation of a certain container and am providing an alternate construction.
  3. An exercise in implementing different data structures using functional programming.
  4. An exercise in using dependent types to implement different data structures.

Provided Containers

  • AVL Tree implementations of:
    • Tree.
    • Dictionary.
    • Set.
  • Graphs using Adjacency Lists.
  • Stack Based Queue
  • List based Stack
  • Dependently Typed AVL tree.

Testing and Build Quality

The containers built here are rough and ready. They may fail; they may not work as intended. There will be code duplication, there may not be documentation.

If there is something missing, that you would like to see please contribute. I welcome reasonable PR and changes to design.

There is a rudimentary testing suite that needs extending, and checks of the implementation’s need performing. There is a quickcheck port to Idris out there but it may have bit-rotten away.

Also please read the CONTRIBUTING.md guidelines, for everyone’s sanity.

idris-containers's People

Contributors

jfdm avatar yacinehmito avatar mgttlinger avatar

Watchers

James Cloos avatar  avatar

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.