I'm trying to port Python's difflib's sequence matcher to nim. I want to be 
able to compare any two sequences of the same types, not just strings.

I have this type: 
    
    
    type
      Diff[T] = object
        a: seq[T]
        b: seq[T]
        b2j: Table[T, seq[int]]
    
    
    Run

How can I say that type `T` must support `==` and `hash()`?

Reply via email to