Exemple #1
0
 public static void Fill <T>(T[] array, VoidFunctor <T> f)
 {
     for (int i = 0; i < array.Length; ++i)
     {
         array[i] = f();
     }
 }
Exemple #2
0
 public static void Fill <T>(IIndexable <T> obj, VoidFunctor <T> f)
 {
     for (int i = 0; i < obj.Length; ++i)
     {
         obj[i] = f();
     }
 }