dash.el
dash.el copied to clipboard
A modern list library for Emacs
This PR is the beginning of a `pcase` pattern that works like `-let`. For me, this would resolve #376 (which I opened). Before I copy the tests for `-let` and...
`seq` is now in emacs core and available to all, a move which we somehow failed to push for with dash. It still only supports a rather small subset of...
seems better and more consistent to use ```lisp (->> 1 (->>as-> i (+ i 1))) ``` rather than ```lisp (->> 1 ((lambda (i) (+ i 1))) ``` \+ there's less...
Add `-de-annotate` which is same as `(-map #'cdr ..)`. As a programmer, I would like to see an `-annotate` paired with `-de-annotate`, so that I can easily compute what annotations...
Proposal `-distribute` --- Distribute a set of objects among different bins; each bin is associated with a predicate function. In other words, an object belongs to a bin, if it...
**Proposal to introduce `-> '(H S L) (--map (intern (format "INDEX-OF-%s-IN-HSLUV" it)))) (->> '(H S L) (funcall (-compose (-cut -iota 0) #'length)))) ``` and evaluates to ```lisp ((INDEX-OF-H-IN-HSLUV INDEX-OF-S-IN-HSLUV INDEX-OF-L-IN-HSLUV)...
Proposal add `-which` -- Return indices where the list entry is non-nil This is not so much about how the implementation of `-which` should look like, but about what the...
This should return the index of the min/max element in the list. Simple implementation is ``` (car (-grade-up '< '(3 4 1 0 2))) ;; => minimum is at index...
The documentation for `-if-let` reads as follows: `If VAL evaluates to non-nil, bind it to VAR and do THEN, otherwise do ELSE.` However, `-if-let`'s behavior does not match this, and...