Giter Club home page Giter Club logo

Comments (5)

gdziadkiewicz avatar gdziadkiewicz commented on July 20, 2024 1

Hi Humza, checking.

from fsharpx.collections.

hummy123 avatar hummy123 commented on July 20, 2024 1

Hi Grzegorz.

Thanks for your time and help. Sure, I'll create a PR tomorrow hopefully (almost 10 PM here).

I appreciate your help and don't worry about response times. I think you were right about the Expecto error being a local issue as it isn't happening anymore.

Appreiate your help. Thanks again.

from fsharpx.collections.

hummy123 avatar hummy123 commented on July 20, 2024

I've got all the tests passing in my repository (isEmpty, exists, notExists, tryFind, find, toList/Array/Seq, ofList/Array/Seq, fold/foldback, insert, delete) so this is all I'm waiting for before adding the structure here via a pull request.

There is one error using find in the below code:

test "test find" {
            let tree = AaTree.ofList ["hello"; "bye"]
            Expect.equal "hello" <| AaTree.find "hello" tree <| ""
            // Expecto doesn't catch this expected exception for some reason.
            // Expect.throws (fun () -> AaTree.find "goodbye" tree |> ignore) ""
        }

It throws an error as expected, but that error propagates to Expecto's test (Visual Studio breaks the program because of an uncaught error), so the behaviour works but there is one problem with the test code which I am not sure how to handle.

Appreciate your help with the test and/or the code style question.

Link to my repository (not a fork of this) if curious: https://github.com/hummy123/Functional-AA-Tree .

Thanks,
Humza

from fsharpx.collections.

hummy123 avatar hummy123 commented on July 20, 2024

Apologies for having put work on your plate over the weekend. 😅 No rush, but I appreciate it whenever you get there.

Edit: I made a new and final commit (everything else is fine from what I see) swapping the names of the fold and foldback functions because I had named them the wrong way around. However, everything is fine now from what I see.

from fsharpx.collections.

gdziadkiewicz avatar gdziadkiewicz commented on July 20, 2024

Hi Humza,
I took a look at your code and it looks promising! Please create a PR for adding AATree to this repo.

After you create it we can work out the details. For starters let's go with the rec namespace. It can always be replaced with something more elegant later. To be transparent - I'm willing to deep check your PR, provide suggestions, work on the kinks and check you implementation with the linked paper, but I can't promise quick response times on my side.

For the unexpected Expecto exception behavior pls check https://github.com/hummy123/Functional-AA-Tree/pull/1 . I suspect that this was something going wrong on your machine as it works as expected in CI and on my machine.

from fsharpx.collections.

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.