From 7482b4b90b376cc1d1d64ef827d9014879f0ef84 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 13 Aug 2024 13:13:29 +0200 Subject: expression language: add nub_left Originally, the expression lanuage only contained a function to deduplicate a list, keeping only the right-most occurence. The reason was that this is the order needed for linking: a library providing an open symbol has to come on the command line after the library using that symbol (and hence making it an open symbol). However, by now use cases have emerged that require a topological sorting where definition comes before use; also, when composing the value of PATH from fragments, we usually want to keep the first occurrence in order for it to take precedence. Therefore, also add "nub_left" as built-in function, allowing a more condense (and slightly more efficient) description in rules instead of the revserse-nub_right-reverse pattern. --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 56709f0f..22581d9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,8 +21,8 @@ A feature release on top of `1.3.0`, backwards compatible. at the old location will not be used anymore while still using disk space. - The expression language has been extended to contain quote and - quasi-quote expressions, as well as a new built-in function - `"from_subdir"`. + quasi-quote expressions, as well as new built-in functions + `"from_subdir"`, `"nub_left"`. ### Fixes -- cgit v1.2.3