dash.el icon indicating copy to clipboard operation
dash.el copied to clipboard

Add `-de-annotate` which is same as `(-map #'cdr ..)`.

Open emacksnotes opened this issue 10 months ago • 0 comments

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 are on the stack.

For example, given a set of hex colors, I can annotate the colors with say S and L value, and print them out in rainbow-mode . It will give a quick feedback on what L values are good enough for a particular background. I can also sort on the annotation, and de-annotate the colors. In other words, the annotation could be an intermediate value of computation which may not be of interest to the end user.

(The above is use-case is not imagined; the issues I have opened in the recent times are a result of my experience using dash for creating color palettes for my own custom theme; the issues are a record of the areas where dash could be improved.)

emacksnotes avatar Aug 16 '23 15:08 emacksnotes