Add map_replace intrinsic function
Registered by
Steven Hardy
Currently it's difficult to perform key/value replacements on mappings
(e.g json parameters).
This spec proposes to add a new function that can iterate over a mapping
and replace keys or values based on optional mappings for each::
map_replace:
- k1: v1
k2: v2
- keys:
k1: K1
values:
v2: V2
In this case, the result will be evaluated to {'K1': 'v1', 'k2', 'V2'}
Blueprint information
- Status:
- Complete
- Approver:
- Thomas Herve
- Priority:
- Undefined
- Drafter:
- Steven Hardy
- Direction:
- Needs approval
- Assignee:
- Steven Hardy
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Thomas Herve
- Completed by
- Thomas Herve
Related branches
Related bugs
Sprints
Whiteboard
(?)