Commits

Meikel Brandmeyer committed 90cda2f

Use peek instead of last

Doesn't really matter.

  • Participants
  • Parent commits 253fd4d

Comments (0)

Files changed (1)

File server/src/main/clojure/vimclojure/util.clj

                             (assoc sopts sopt lopt))))
                 [{} {}]
                 (filter vector? specs))
-        rest-arg (when (symbol? (last specs)) (name (last specs)))]
+        rest-arg (when (symbol? (peek specs)) (name (peek specs)))]
     (loop [args   (seq args)
            argmap (hash-map)]
       (let [arg (first args)]