[svn] r6892: nemerle/trunk/lib/narray.n
VladD2
svnadmin at nemerle.org
Wed Nov 15 03:17:57 CET 2006
Log:
Add extension method Filter() for SCG.IEnumerable.
Author: VladD2
Date: Wed Nov 15 03:17:55 2006
New Revision: 6892
Modified:
nemerle/trunk/lib/narray.n
Modified: nemerle/trunk/lib/narray.n
==============================================================================
--- nemerle/trunk/lib/narray.n (original)
+++ nemerle/trunk/lib/narray.n Wed Nov 15 03:17:55 2006
@@ -209,6 +209,11 @@
dest
}
}
+
+ public Filter [T] (this seq : SCG.IEnumerable [T], predicate : T -> bool) : list [T]
+ {
+ $[ x | x in seq, predicate (x) ]
+ }
}
/**
More information about the svn
mailing list