Thanks everyone for your help! My code has been cleaned up quite a bit:
    
    
    from strutils import toLowerAscii
    from sequtils import toSeq
    from sets import toSet, `<=`
    
    const letters = toSeq('a'..'z').toSet()
    
    func isPangram*(text: string): bool =
        return toSet(text.toLowerAscii()) >= letters
    
    
    Run

However I'm still getting the same compiler error. I read about templates, but 
perhaps I have more reading to do? I don't understand why if I import <= from 
sets, I get the compile error, but if I import everything from sets, it works 
just fine. I tried not importing <= in case the proper functioning operator was 
coming from system, but that doesn't seem to be the case.

Reply via email to