diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-06 14:45:05 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-06 14:45:05 +0100 |
commit | 9daa85fed4535baecc092133aab337bd27726ff2 (patch) | |
tree | 0629c28148d2944e49ecdacf1fa1424a0e17ea0a /rules/EXPRESSIONS | |
parent | 02490fb528ed90702eb4b71917f33ec9aa894252 (diff) | |
parent | 2b07a15b20ed814f253ec3bc7f0ee089ccd066f2 (diff) | |
download | rules-cc-9daa85fed4535baecc092133aab337bd27726ff2.tar.gz |
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/EXPRESSIONS')
-rw-r--r-- | rules/EXPRESSIONS | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/rules/EXPRESSIONS b/rules/EXPRESSIONS index 52a381f..0c1f611 100644 --- a/rules/EXPRESSIONS +++ b/rules/EXPRESSIONS @@ -126,7 +126,7 @@ , "expression": { "type": "map_union" , "$1": - [ {"type": "singleton_map", "key": "PATH", "value": "/bin:/usr/bin"} + [ {"type": "'", "$1": {"PATH": "/bin:/usr/bin"}} , {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} ] } @@ -226,18 +226,4 @@ } } } -, "nub_left": - { "doc": ["Removes all but the leftmost duplicate from the list."] - , "vars": ["list"] - , "vars_doc": {"list": ["The list to remove duplicates from."]} - , "expression": - { "type": "let*" - , "bindings": - [ ["list", {"type": "reverse", "$1": {"type": "var", "name": "list"}}] - , ["list", {"type": "nub_right", "$1": {"type": "var", "name": "list"}}] - , ["list", {"type": "reverse", "$1": {"type": "var", "name": "list"}}] - ] - , "body": {"type": "var", "name": "list"} - } - } } |