Is it right?
(group-duplicates alist fuzz)
=> ((1.1 1.19 1.2 1.21 1.22 1.23 1.25 1.3) (3.0 3.0 3.0))
(group-duplicates alist fuzz)
=> ((1.1 1.19 1.2 1.21 1.22 1.23 1.25 1.3) (3.0 3.0 3.0))
Following ... as I understand this:
(equal 1.1 1.19 0.05) => nil
This one I do see that I make a mistake. Will have to look at how to get around it without making a huge extra iteration just for that edge case.
(equal 1.3 1.25 0.05) => nil
Floating point inacuracies. I use a division on the fuzz, that's why in my defun that is considered equal. It's just an implementation issue.
(equal 1.1 1.0 0.05) => nil
(equal 1.3 3.0 0.05) => nil
I don't understand. Isn't that exactly what my defun did?