CSV Documentation

Jesse Phillips jessekphillips+D at gmail.com
Thu Aug 11 08:46:27 PDT 2011


Lars T. Kyllingstad Wrote:

> Instead of stuff like
> 
>     foreach(cell; record) {
>         assert(ans[count] == cell);
>         count++;
>     }
> 
> may I suggest you write
> 
>     import std.algorithm;
>     assert (equal(record, ans));
> 
> ? :)
> 
> -Lars

Thanks, I guess I'm a little worried that it doesn't show how to use it, but it should be clear enough for D programmers. Definitely will help my unit tests.


More information about the Digitalmars-d mailing list