UnixJunkie / interval-tree

tree for float intervals
Other
12 stars 4 forks source link

int-intervals (and maybe others) #5

Open mwweissmann opened 8 years ago

mwweissmann commented 8 years ago

would you accept a patch to make the point-type flexible? So instead of forcing you to use a float, you could use an int (or something else). Probably the most straight forward implementation would be to make the current lib a functor -- and providing a float and an int applied one.

UnixJunkie commented 8 years ago

Sure. Send the patch and I will review it. Thanks! ----- mwweissmann notifications@github.com a �crit�:

would you accept a patch to make the point-type flexible? So instead of forcing you to use a float, you could use an int (or something else). Probably the most straight forward implementation would be to make the current lib a functor -- and providing a float and an int applied one.

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/UnixJunkie/interval-tree/issues/5

UnixJunkie commented 8 years ago

Is the module parameter your are thinking about just a type and a comparison function ?

mwweissmann commented 8 years ago

I think a type, comparison and bisect function, yes.

UnixJunkie commented 2 years ago

Concerning ints, I guess that most ints can be stored inside a float. So, your use case is probably already supported. Unless you are dealing with very large integers?