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:
parent
4823ec8694
commit
ca0feb57e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue