|
@@ -76,12 +76,21 @@ namespace Invercargill {
|
|
|
return array;
|
|
return array;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public new ImmutableBuffer<T> to_immutable_buffer() throws Error {
|
|
|
|
|
+ return to_series().to_immutable_buffer();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public new Vector<T> to_vector() throws Error {
|
|
public new Vector<T> to_vector() throws Error {
|
|
|
var vector = new Vector<T>();
|
|
var vector = new Vector<T>();
|
|
|
iterate(i => vector.add(i));
|
|
iterate(i => vector.add(i));
|
|
|
return vector;
|
|
return vector;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public new Buffer<T> to_buffer() throws Error {
|
|
|
|
|
+ var array = to_array();
|
|
|
|
|
+ return new Buffer<T>.take_array(array);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public new Dictionary<TKey, T> to_dictionary<TKey>(TransformDelegate<T, TKey> key_selecter, HashDelegate<TKey>? key_hash_func = null, EqualityDelegate<TKey>? key_equal_func = null) throws Error {
|
|
public new Dictionary<TKey, T> to_dictionary<TKey>(TransformDelegate<T, TKey> key_selecter, HashDelegate<TKey>? key_hash_func = null, EqualityDelegate<TKey>? key_equal_func = null) throws Error {
|
|
|
var dict = new Dictionary<TKey, T>(key_hash_func, key_equal_func);
|
|
var dict = new Dictionary<TKey, T>(key_hash_func, key_equal_func);
|
|
|
iterate(i => dict.set(key_selecter(i), i));
|
|
iterate(i => dict.set(key_selecter(i), i));
|
|
@@ -141,7 +150,7 @@ namespace Invercargill {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public new Attempts<T> where(owned PredicateDelegate<T> predicate) {
|
|
public new Attempts<T> where(owned PredicateDelegate<T> predicate) {
|
|
|
- return inner.where(i => !i.success || predicate(i)).assert_promotion<Attempts<T>>();
|
|
|
|
|
|
|
+ return inner.where(i => !i.success || predicate(i.result)).assert_promotion<Attempts<T>>();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public new Attempts<TOut> select<TOut>(owned TransformDelegate<T, TOut> transform) {
|
|
public new Attempts<TOut> select<TOut>(owned TransformDelegate<T, TOut> transform) {
|