Lazy KMP range

bearophile bearophileHUGS at lycos.com
Fri Jun 15 12:03:53 PDT 2012


A lazy Knuth-Morris-Pratt that works on a Input Range:
http://ideone.com/dUs5B

Do you have suggestions for improvements of the code? Maybe do I 
have to turn it into a Forward Range if the first range is a 
Forward one? Is something similar to this useful for Phobos?

Bye and thank you,
bearophile


More information about the Digitalmars-d-learn mailing list