Skip to content

Indexes in the heap #5

@TravisLEBLANC1

Description

@TravisLEBLANC1

I believe there is a better way to find indexes in the interpretation. I'm talking specially about the line in interpretMS

let eval_prog verbose prog vlist = 
   ....
   let merge heapval =
      let l = Array.find_index ((=) heapval) heap in (*       TODO : how to find index????       *)

This operation is done every time we use a constructor and could be costly

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions