August 07, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3234

           Summary: Range comparison with array
           Product: D
           Version: 2.029
          Platform: Other
               URL: http://www.digitalmars.com/d/2.0/phobos/std_algorithm.
                    html#filter
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: Jesse.K.Phillips+D@gmail.com
                CC: Jesse.K.Phillips+D@gmail.com


Comparisons between a range and a static array gave error.

The error received is:

    Error: incompatible types for ((small) == ([1,2])): 'Filter!(result,int[])'
and 'int[2u]'

Example code provided by std.algorithms webpage:

import std.algorithm;

void main() {
   int[] arr = [ 1, 2, 3, 4, 5 ];
   // Sum all elements
   auto small = filter!("a < 3")(arr);
   assert(small == [ 1, 2 ]);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3234


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-12 10:23:54 PDT ---
This was a documentation bug which has been fixed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------