Code Monkey home page Code Monkey logo

Comments (4)

TimBergner avatar TimBergner commented on May 26, 2024

Of course one of the most important information was only implicit in the examples: the problem concerns the merge function.

from portion.

AlexandreDecan avatar AlexandreDecan commented on May 26, 2024

Hello,

Thank you for having reported this issue! I'll have a look asap and try to release a hotfix asap as well :-)

from portion.

AlexandreDecan avatar AlexandreDecan commented on May 26, 2024

I found the issue. When intervals are simplified, the underlying atomic intervals are sorted by their lower bound. and an attempt to merge them is made. Since (2, 3) and [2] have the same lower bound, the order in which they are provided defines the order in which they will be considered (and that's why (1, 2) | [2] | (2, 3) works): it tries first to merge (1, 2) and (2, 3) (they can't), then (2, 3) and [2] (which results in [2, 3)).

I'll confirm this asap, fix it, and release a hotfix.

from portion.

AlexandreDecan avatar AlexandreDecan commented on May 26, 2024

Fixed in 39e2564

Fix will be released in a few minutes as part of version 2.1.2.

from portion.

Related Issues (20)

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.