digitalmars.D.bugs - [Issue 4806] New: Typo in transversal
- d-bugmail puremagic.com (24/24) Sep 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4806
- d-bugmail puremagic.com (14/14) Feb 03 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4806
- d-bugmail puremagic.com (6/6) Feb 03 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4806
http://d.puremagic.com/issues/show_bug.cgi?id=4806 Summary: Typo in transversal Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 10:20:27 PDT --- Code from: http://www.digitalmars.com/d/2.0/phobos/std_range.html#transversal int[][] x = new int[][2]; x[0] = [1, 2]; x[1] = [3, 4]; auto ror = transversal(x, 1); assert(equals(ror, [ 2, 4 ][])); Last line should be: assert(equal(ror, [ 1, 3 ][])); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 03 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4806 Lars T. Kyllingstad <bugzilla kyllingen.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla kyllingen.net Resolution| |FIXED 01:59:02 PST --- Nope, [2, 4] is correct. [1, 3] are the 0th elements. The equals->equal typo was fixed in https://github.com/D-Programming-Language/phobos/commit/3ec3fee75ae62aa72946d6ae5a132f5159ff0f9c -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4806 13:29:27 PST --- You're right. It must have been a brainfart. :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2011