|
@@ -156,10 +156,7 @@ namespace Invercargill {
|
|
|
}
|
|
|
|
|
|
public virtual Attempts<SelectionContext<T, TOut>> attempt_contextualised_select<TOut>(owned AttemptTransformDelegate<T, TOut> transform) {
|
|
|
- return attempt_select<SelectionContext<T, TOut>>((i) => new SelectionContext<T, TOut>() {
|
|
|
- origin = i,
|
|
|
- result = transform(i)
|
|
|
- });
|
|
|
+ return attempt_select<SelectionContext<T, TOut>>((i) => new SelectionContext<T, TOut>(i, transform(i)));
|
|
|
}
|
|
|
|
|
|
public virtual Attempts<TOut> attempt_select_nested<TOut>(owned AttemptTransformDelegate<T, Enumerable<Attempt<TOut>>> transform) {
|
|
@@ -229,10 +226,7 @@ namespace Invercargill {
|
|
|
}
|
|
|
|
|
|
public virtual Enumerable<SelectionContext<T, TOut>> contextualised_select<TOut>(owned TransformDelegate<T, TOut> transform) {
|
|
|
- return select<SelectionContext<T, TOut>>((i) => new SelectionContext<T, TOut>() {
|
|
|
- origin = i,
|
|
|
- result = transform(i)
|
|
|
- });
|
|
|
+ return select<SelectionContext<T, TOut>>((i) => new SelectionContext<T, TOut>(i, transform(i)));
|
|
|
}
|
|
|
|
|
|
public virtual TOut aggregate<TOut>(TOut initial, AggregateDelegate<TOut, T> aggregate_func) {
|