Drop unnecessary use of anonymous function
This commit is contained in:
parent
b3b3ce4bca
commit
cb1ebfbc5b
@ -365,7 +365,7 @@ function! foreplay#evalparse(expr) abort
|
|||||||
\ '(symbol ((fn *vimify [x]' .
|
\ '(symbol ((fn *vimify [x]' .
|
||||||
\ ' (cond' .
|
\ ' (cond' .
|
||||||
\ ' (map? x) (str "{" (apply str (interpose ", " (map (fn [[k v]] (str (*vimify k) ": " (*vimify v))) x))) "}")' .
|
\ ' (map? x) (str "{" (apply str (interpose ", " (map (fn [[k v]] (str (*vimify k) ": " (*vimify v))) x))) "}")' .
|
||||||
\ ' (coll? x) (str "[" (apply str (interpose ", " (map #(*vimify %) x))) "]")' .
|
\ ' (coll? x) (str "[" (apply str (interpose ", " (map *vimify x))) "]")' .
|
||||||
\ ' (number? x) (pr-str x)' .
|
\ ' (number? x) (pr-str x)' .
|
||||||
\ ' (keyword? x) (pr-str (name x))' .
|
\ ' (keyword? x) (pr-str (name x))' .
|
||||||
\ ' :else (pr-str (str x)))) '.a:expr.'))',
|
\ ' :else (pr-str (str x)))) '.a:expr.'))',
|
||||||
|
Loading…
Reference in New Issue
Block a user