Fix docstring of add-clause-before

The result of adding a clause to a list in which the it already appears, is not to remove it from the list, but to move it to the end.
This commit is contained in:
Fredrik Vaeng Røtnes 2022-03-19 22:16:20 +00:00 committed by GitHub
parent 4823ec8694
commit ca0feb57e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@
(defn- add-clause-before
"Low-level helper just to insert a new clause.
If the clause is already in the list, remove it."
If the clause is already in the list, this moves it to the end."
[order clause before]
(let [clauses (set order)
order (if (contains? clauses clause)