Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

tango.core.Array.kfind comments

Please state your comments and issues here appended by your name/username. Thanks.

KeYeR-L Very cool feature but I think simpler way would be

uint kfind (Elem[] buf, Elem pat, Pred2E pred = null); 
uint kfind (Elem[] buf, Elem[] pat, Pred2E pred = null);
uint krfind (Elem[] buf, Elem pat, Pred2E pred = null);
uint krfind (Elem[] buf, Elem[] pat, Pred2E pred = null);

writing that they are equivalents of *link*find*linkend* and *link*rfind*linkend* but using the KMP and info about the cost

and instead of repeating what cost of KMP is write an example why someone could want to use it. I know it's against description for each function rule.. but on the other hand those functions are very similar, so repeating nearly identical description only making people harder to get the difference. Something like OK, they are nearly the same but ... they are using ... cost is .. and you know, you can use it for example when ...

that documentation is harder to write, but imho is more useful for a user

larsivi See ticket #276