Skip to content

Conversation

@verhas
Copy link

@verhas verhas commented Oct 23, 2025

The code creates a new class LocalContext that works as data for the reduce operation, but it also delegates requests to the global data if the variable name is not "current" or "accumulator".

it makes it possible to use the variables inside a delegate logic.

RESTRICTION: This only works when the data is a map. It does not work for primitive values and for arrays.

…wing access to global values when the data is a Map. This is the most used case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant