DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Add lambda expression and `map()` function with ARM syntax

Open Gijsreyn opened this issue 1 month ago • 0 comments

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 avatar Nov 05 '25 03:11 Gijsreyn