commit ae7a66703636d06cdce5483ad5c01c958b782d37
parent 38982b2636eb830124399cc3ebdad8652671713c
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Fri, 26 May 2017 22:27:12 +0100
Simplify destructuring with -lambda
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -160,8 +160,7 @@ If the source code cannot be found, return the sexp used."
(forms-and-buf (-first-item forms-and-bufs))
((forms . _buf) forms-and-buf))
(--map
- (-let [(_code start-pos _end-pos) it]
- start-pos)
+ (-lambda ((_code start-pos _end-pos)) start-pos)
forms)))
(defun helpful--all-keymap-syms ()