return array;
}
+#if VALA_0_16
+ private static float?[] to_float_array(Collection<float?> coll) {
+ float?[] array = new float?[coll.size];
+#else
private static float[] to_float_array(Collection<float?> coll) {
float[] array = new float[coll.size];
+#endif
int index = 0;
foreach (float element in coll) {
array[index++] = element;
return array;
}
+#if VALA_0_16
+ private static double?[] to_double_array(Collection<double?> coll) {
+ double?[] array = new double?[coll.size];
+#else
private static double[] to_double_array(Collection<double?> coll) {
double[] array = new double[coll.size];
+#endif
int index = 0;
foreach (double element in coll) {
array[index++] = element;
#endif
}
- public static inline bool proceed<G> (ref Node<G> prev, ref Node<G> curr, bool force = false) {
+ public static inline bool proceed<G> (ref Node<G>? prev, ref Node<G> curr, bool force = false) {
Node<G> next = curr.get_next ();
while (next != null) {
State next_state = next.get_state ();
assert (double_list.add (1.5d));
assert (double_list.add (2.0d));
+#if VALA_0_16
+ double?[] double_array = double_list.to_array ();
+#else
double[] double_array = double_list.to_array ();
+#endif
index = 0;
foreach (double element in double_list) {
assert (element == double_array[index++]);