Skip to content

Conversation

@Gijsreyn
Copy link
Contributor

@Gijsreyn Gijsreyn commented Nov 5, 2025

PR Summary

This PR implements lambda expressions and the map() function for DSC configuration documents, enabling array transformations. The implementation uses ARM compatible syntax e.g., (lambda('param', body) and lambdaVariables('param'))

Example usage:

# Transform array elements
map(createArray(1, 2, 3), lambda('x', mul(lambdaVariables('x'), 2)))
# Returns: [2, 4, 6]

Seperated tests in a different file.

PR Context

Partially addresses #57.

@Gijsreyn Gijsreyn marked this pull request as ready for review November 5, 2025 03:30
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