I need to count how many times floating point value occurs in a list, and I have custom compare function (that compares floats with a relative tolerance).
Is there a simple solution to count element in a list using custom compare function?
As I understand, list.count()
does not accept comparison function - only single argument to count.