Exemple #1
0
 public static IArray <T> TakeWhile <T>(this IArray <T> self, Func <T, bool> p)
 {
     return(Take(self, self.CountWhile(p)));
 }
Exemple #2
0
 public static IArray <T> SkipWhile <T>(this IArray <T> self, Func <T, bool> p)
 {
     return(Skip(self, self.CountWhile(p)));
 }
Exemple #3
0
 public static bool All <T>(this IArray <T> self, Func <T, int, bool> p)
 {
     return(self.CountWhile(p) == self.Count);
 }