Skip to content

Commit

Permalink
Credit dash.el for helper functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sashimacs committed May 4, 2023
1 parent e0bfd2b commit eed712a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hotfuzz.el
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ HAYSTACK has to be a match according to `hotfuzz-filter'."
"Evaluate BODY for each element of LIST and return nil.
Each element of LIST in turn is bound to `it' and its index
within LIST to `it-index' before evaluating BODY.
This is the anaphoric counterpart to `-each'."
This is the anaphoric counterpart to `-each'.
Shamelessly lifted from dash: https://github.com/magnars/dash.el"
(let ((l (make-symbol "list"))
(i (make-symbol "i")))
`(let ((,l ,list)
Expand All @@ -159,7 +161,9 @@ Like `--filter', but returns the non-nil results of FORM instead
of the corresponding elements of LIST. Each element of LIST in
turn is bound to `it' and its index within LIST to `it-index'
before evaluating FORM.
This is the anaphoric counterpart to `-keep'."
This is the anaphoric counterpart to `-keep'.
Shamelessly lifted from dash: https://github.com/magnars/dash.el"
(let ((r (make-symbol "result"))
(m (make-symbol "mapped")))
`(let (,r)
Expand Down

0 comments on commit eed712a

Please sign in to comment.