[svn] r6262: nemerle/trunk/lib/narray.n

malekith svnadmin at nemerle.org
Sat May 13 13:01:10 CEST 2006


Log:
Get back to the previous ordering of generic type parameters in Fold and FoldI -- new extension method impl doesn't require it.:

Author: malekith
Date: Sat May 13 13:01:09 2006
New Revision: 6262

Modified:
   nemerle/trunk/lib/narray.n

Modified: nemerle/trunk/lib/narray.n
==============================================================================
--- nemerle/trunk/lib/narray.n	(original)
+++ nemerle/trunk/lib/narray.n	Sat May 13 13:01:09 2006
@@ -89,7 +89,7 @@
     /**
      * Folds a function over an array.
      */
-    public Fold ['b, 'a] (this arr : array ['b], ini : 'a, f : 'b * 'a -> 'a) : 'a
+    public Fold ['a, 'b] (this arr : array ['b], ini : 'a, f : 'b * 'a -> 'a) : 'a
     {
       def loop (acc, i)
       {
@@ -105,7 +105,7 @@
      * Folds a function over an array, passing the array index
      * as an additional parameter to the folded function parameters.
      */
-    public FoldI ['b, 'a] (this arr : array ['b], ini : 'a, f : int * 'b * 'a -> 'a) : 'a
+    public FoldI ['a, 'b] (this arr : array ['b], ini : 'a, f : int * 'b * 'a -> 'a) : 'a
     {
       def loop (acc, i)
       {



More information about the svn mailing list