diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-05 16:27:50 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-06 14:37:16 +0100 |
commit | f8937f600f797fe82b346dfeffa954bcc5f47972 (patch) | |
tree | d74d28155bf751b7c66333c824c691fcbf64d3d9 /rules/EXPRESSIONS | |
parent | 51ce2fe766ba189771b32a50be2e2592d64c9f4f (diff) | |
download | justbuild-f8937f600f797fe82b346dfeffa954bcc5f47972.tar.gz |
Prefer built-in "nub_left"
Now that justbuild 1.4 is available, the workaround of defining
"nub_left" in terms of "reverse" and "nub_right" is no longer
necessary.
Diffstat (limited to 'rules/EXPRESSIONS')
-rw-r--r-- | rules/EXPRESSIONS | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/rules/EXPRESSIONS b/rules/EXPRESSIONS index 52a381fb..b974026e 100644 --- a/rules/EXPRESSIONS +++ b/rules/EXPRESSIONS @@ -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"} - } - } } |