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 | 2b07a15b20ed814f253ec3bc7f0ee089ccd066f2 (patch) | |
tree | 9f82bf2e8ee68092eac3431b3423217ddfb531b6 /EXPRESSIONS | |
parent | 5803ce704eb9cf9c30235e82856ed738486256e1 (diff) | |
parent | 1e099fbbb5648177ceded11a7a56e6ca9e9103ac (diff) | |
download | rules-cc-2b07a15b20ed814f253ec3bc7f0ee089ccd066f2.tar.gz |
Merge branch 'just-rules' into rules
Diffstat (limited to 'EXPRESSIONS')
-rw-r--r-- | EXPRESSIONS | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/EXPRESSIONS b/EXPRESSIONS index 52a381f..0c1f611 100644 --- a/EXPRESSIONS +++ b/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"} - } - } } |