From e2f3d95a59dfe2badc71eafca21c66052fefbbad Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 7 May 2024 10:01:11 -0300 Subject: aggregate: aggregate.contain --- src/util/aggregate.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/aggregate.js b/src/util/aggregate.js index 5429e640..3ad8bdba 100644 --- a/src/util/aggregate.js +++ b/src/util/aggregate.js @@ -124,6 +124,13 @@ export function openAggregate({ }); }; + aggregate.contain = (results) => { + return { + aggregate, + result: aggregate.receive(results), + }; + }; + aggregate.map = (...args) => { const parent = aggregate; const {result, aggregate: child} = mapAggregate(...args); -- cgit 1.3.0-6-gf8a5