Giter VIP home page Giter VIP logo

containers-hack's Introduction

containers-hack

Some custom functions which is not present yet in containers, but needed for me.

Data.IntMap.Bound

Functions to get a part of sequence in a IntMap a.

Functions

limitedOf

A function to get a part of sequence in a IntMap a by its key which are bigger or equal than lower bound and smaller or equal than upper bound. It is equivalent to filterWithKey (\k _ -> lowerBound <= k && k <= upperBound).

boundedOf

A function to get a part of sequence in a IntMap a by its key which covers lower bound and upper bound. It is equivalent to limitedOf lowerBound upperBound t + lookupLT lowerBound t + lookupGT upperBound t.

rough*

Maybe internal function. Bounding/Limiting at masking level. This post process should be finished very quickly, and not duplicate with boundedOf/limitedOf.

Proof & Test Status

Proof

Not yet.... I nearly understand that how IntMap is constructed and how prefix and mask work, but I'm not sure that I understand it perfectly....

Test

Tested by QuickCheck. This may not cover all of boundary conditions. Tested cases are recorded in testset.hs.

containers-hack's People

Contributors

quietjoon 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.