summaryrefslogtreecommitdiff
path: root/ennu.el
diff options
context:
space:
mode:
authorArun Isaac2019-09-02 22:54:19 +0530
committerArun Isaac2019-09-02 22:54:19 +0530
commitdfdbc51501bcf535c6ecb742cfc169f6041be224 (patch)
treefac4cb77c0c706a31ffa0070dd7d60f67a379850 /ennu.el
parent7c842139bcdf41b20b1cf409d5599be2a760e70d (diff)
downloadennum-dfdbc51501bcf535c6ecb742cfc169f6041be224.tar.gz
ennum-dfdbc51501bcf535c6ecb742cfc169f6041be224.tar.lz
ennum-dfdbc51501bcf535c6ecb742cfc169f6041be224.zip
Add filter-map utility function.
* ennu.el (ennu--filter-map): New function.
Diffstat (limited to 'ennu.el')
-rw-r--r--ennu.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/ennu.el b/ennu.el
index 3bd5f79..be81523 100644
--- a/ennu.el
+++ b/ennu.el
@@ -335,6 +335,9 @@ if DESTINATION already exists."
(make-directory (file-name-directory destination) t)
(copy-file source destination t)))
+(defun ennu--filter-map (function sequence)
+ (seq-filter 'identity (seq-map function sequence)))
+
(defun ennu--do-operation (temporary-directory operation)
(let* ((expand (lambda (directory file)
(expand-file-name file directory)))