|
@@ -1,29 +1,6 @@
|
|
|
|
|
|
namespace Invercargill {
|
|
namespace Invercargill {
|
|
|
|
|
|
- public static Enumerable<T> ate<T>(T[] input) {
|
|
|
|
- if(typeof(T).is_value_type()) {
|
|
|
|
- // LibGee has already done the hard work around
|
|
|
|
- // Vala's funkyness with arrays of type arguments
|
|
|
|
- var gee = new Gee.ArrayList<T>.wrap(input);
|
|
|
|
- return new GeeEnumerable<T>(gee);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return new ArrayEnumerable<T>(input);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static Enumerable<T> gate<T>(GenericArray<T> input) {
|
|
|
|
- return new GenericArrayEnumerable<T>(input);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public static Enumerable<T> gte<T>(Gee.Iterable<T> input) {
|
|
|
|
- return new GeeEnumerable<T>(input);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // public static Enumerable<string> dte(path input) {
|
|
|
|
- // return new DirEnumerable(input);
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
public static Enumerable<int> range(int from, int to, int increment = 1) {
|
|
public static Enumerable<int> range(int from, int to, int increment = 1) {
|
|
return new RangeEnumerable(from, to, increment);
|
|
return new RangeEnumerable(from, to, increment);
|
|
}
|
|
}
|