diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-05-24 15:23:43 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-05-24 15:23:43 +0200 |
commit | e111a79564d724eede3f7ba4a94e18431ed3cc7a (patch) | |
tree | 2f5f754a7f8b2a68ea3fee1c65cd1ea115e5f095 | |
parent | 2c3c587e6cf68a727ab54e7e7afce629960d2c29 (diff) | |
parent | 3d169d0e7302810f8bb50739fb4b96516724911d (diff) | |
download | rules-cc-e111a79564d724eede3f7ba4a94e18431ed3cc7a.tar.gz |
Merge subtree 'rules' into rules-cc
-rw-r--r-- | rules/CC/auto/EXPRESSIONS | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/rules/CC/auto/EXPRESSIONS b/rules/CC/auto/EXPRESSIONS index ac19f7a..9520975 100644 --- a/rules/CC/auto/EXPRESSIONS +++ b/rules/CC/auto/EXPRESSIONS @@ -1,32 +1,12 @@ { "last_list_entry": { "vars": ["list"] , "expression": - { "type": "foldl" - , "range": {"type": "var", "name": "list"} - , "start": null - , "body": {"type": "var", "name": "_"} - } + {"type": "[]", "index": -1, "list": {"type": "var", "name": "list"}} } , "first_list_entry": { "vars": ["list"] , "imports": {"last": "last_list_entry"} , "expression": - { "type": "let*" - , "bindings": - [ [ "list" - , { "type": "foldl" - , "range": {"type": "var", "name": "list", "default": []} - , "start": null - , "body": - { "type": "if" - , "cond": {"type": "var", "name": "$1"} - , "then": {"type": "var", "name": "$1"} - , "else": [{"type": "var", "name": "_"}] - } - } - ] - ] - , "body": {"type": "CALL_EXPRESSION", "name": "last"} - } + {"type": "[]", "index": 0, "list": {"type": "var", "name": "list"}} } } |