dash.el is library of list processing functions, function combinators, and anaphoric macros, often inspired by Clojure's standard library. It is available on GNU ELPA.
Questions tagged [dash.el]
12 questions
11
votes
1 answer
What's "it" for?
For example in the definition of -first we have:
(--first (funcall pred it) list))
Naturally the meaning of "it" is very hard to google or search in the manual.

Alejandro Pedraza
- 213
- 1
- 5
4
votes
1 answer
How do I solve `Lisp error: (void-function -compose)` when using lsp-dart?
When I load a Dart file with GNU Emacs 27.1-1 for OS X I get the following little error novel.
Debugger entered--Lisp error: (void-function -compose)
(-compose #'lsp--client-path->uri-fn #'lsp--workspace-client)
(-keep (-compose…

Sam
- 317
- 1
- 11
3
votes
1 answer
How to invoke functions that are quoted in let?
I'm trying to do some processing of values passed in a plist. Processing is quite similar: get a value, convert it to number if necessary, check if within bounds and if yes, return a string with that number, properly formatted.
Thus, I decided to…

Nikola Knezevic
- 163
- 6
2
votes
2 answers
How to fix indentation for `dash.el` threading macros (e.g. `->>`)
As I write more Elisp, I find myself using the threading macro increasingly often. However, since it is an imported, not a built-in one, the indentation is not like what I want it to be.
For example, I want the auto-indentation to be, not like…

Namudon'tdie
- 159
- 6
2
votes
1 answer
Zip/Map functions ending when shortest list runs out
I wanted a function in the style of zip, but rather than stopping when one of the supplied lists runs out, I wanted it to continue using zip on the rest of the lists.
Looking around at a few Emacs functions (referring mainly to those internal to…
user2267
1
vote
0 answers
Open helm-dash in emacs in a new window
When I'm editing my code, I'd like to open the documentation via helm-dash-at-point in a new split besides my source code. But it only opens in the same window. I don't really care if it uses eww or w3m as long as it works (eww would be slightly…

sebastian
- 417
- 3
- 9
1
vote
1 answer
What is disabling the dash package?
I'm trying to install the smartparens package, but I'm having trouble. When I go to M-x list-packages, mark smartparens for installation, and hit x (execute) y (yes), I get the error message:
Required package 'dash' is disabled
This is not just…

Violet
- 488
- 4
- 13
1
vote
1 answer
"symbol's function definition is void: -dotimes" Error
I'm trying to use the following function (extracted from the amazing emacs-prelude configuration)
(defun prelude-duplicate-current-line-or-region (arg)
"Duplicates the current line or region ARG times.
If there's no region, the current line will…

RafaelGP
- 291
- 2
- 6
0
votes
1 answer
What does -> mean in library dash.el?
What does the -> mean here:
(interactive
(list
(-> (dap--completing-read "Select configuration template: "
(-mapcat #'funcall dap-launch-configuration-providers)
'cl-first nil t))))

David
- 291
- 1
- 9
0
votes
0 answers
why dash didn't show up with list-packages
I was trying to install dash using elpa but failed.
I can't understand why it shows dash[no match] by following M-x package-install RET dash RET as in the snapshot. can anyone let me know why? Thank you!
I also tried list-package and dash does not…

YiC
- 105
- 1
- 8
0
votes
0 answers
How to properly install and use package dependencies in Travis CI
Backstory
Hi, I am developing a library that easily transforms JSON alists into EIEIO objects, jeison. It sounds pretty obvious and a duplicate of json.el functionality, but it is a bit trickier than that. Jeison defines more of a declarative way of…

Valeriy Savchenko
- 133
- 4
0
votes
0 answers
Projectile void variable `it`
Projectile, as of versions marmalade-0.10.0 and melpa-20150720.515, seems to have lost access to the it variable. I think that dash may have changed the variable's scope. How can I work around this?
To reproduce:
Install marmalade-0.10.0 or…

Matthew Piziak
- 5,958
- 3
- 29
- 77