Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
40714862
Unverified
Commit
40714862
authored
Mar 21, 2019
by
NicolasPetton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/emacs-lisp/seq.el (seq-difference): Inverse a conditional for clarity.
parent
287cc58f
Pipeline
#1045
passed with stage
in 57 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/emacs-lisp/seq.el
lisp/emacs-lisp/seq.el
+3
-3
No files found.
lisp/emacs-lisp/seq.el
View file @
40714862
...
...
@@ -430,9 +430,9 @@ Equality is defined by TESTFN if non-nil or by `equal' if nil."
"Return a list of the elements that appear in SEQUENCE1 but not in SEQUENCE2.
Equality is defined by TESTFN if non-nil or by `equal' if nil."
(
seq-reduce
(
lambda
(
acc
elt
)
(
if
(
not
(
seq-contains-p
sequence2
elt
testfn
)
)
(
cons
elt
acc
)
acc
))
(
if
(
seq-contains-p
sequence2
elt
testfn
)
acc
(
cons
elt
acc
))
)
(
seq-reverse
sequence1
)
'
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment