From: Joseph Nuthalapati Date: Sat, 27 Feb 2021 13:15:00 +0000 (+0530) Subject: lib: Use syntactic sugar X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/commitdiff_plain/30bd2f34f3d22bdd4314d4bd3384fa3d6dbd5ca5 lib: Use syntactic sugar Signed-off-by: Joseph Nuthalapati --- diff --git a/lib.clj b/lib.clj index fb67137..16c9059 100644 --- a/lib.clj +++ b/lib.clj @@ -41,5 +41,7 @@ (let [content (if (> (.available System/in) 0) (slurp *in*) (first *command-line-args*))] - (doseq [arg (filter #(not= "" %) (split-lines content))] - (f arg))))) + (->> content + (split-lines) + (filter seq) + (run! f)))))