[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs]
From: |
Jonas Bernoulli |
Subject: |
Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs] |
Date: |
Wed, 13 May 2020 23:03:14 +0200 |
Stefan Monnier <address@hidden> writes:
>> You said that there is a macro like this already in Emacs?
>
> I don't think it's in Emacs, but I remember seeing something like
> that somewhere.
You were probably thinking of Oleh Krehel's short-lambda package.
https://github.com/abo-abo/short-lambda
;; This package allows to do this:
;;
;; (cl-mapcar #(concat %1 " are " %2)
;; '("roses" "violets")
;; '("red" "blue"))
;; ;; => '("roses are red" "violets are blue")
;;
;; Or this:
;;
;; (mapc #(put % 'disabled nil)
;; '(upcase-region downcase-region narrow-to-region))
;;
;; This assumes that there is a reader macro in the Emacs C code that
;; translates #(STRUCTURE) to (short-lambda STRUCTURE), in the same
;; way as for the `backquote' macro.
If we ask nicely, he might still be able to dig up the C code.
Hey Oleh!
Jonas
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], (continued)
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Richard Stallman, 2020/05/10
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Richard Stallman, 2020/05/10
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Phillip Lord, 2020/05/11
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Richard Stallman, 2020/05/11
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Joost Kremers, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Stefan Monnier, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Phillip Lord, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Stefan Monnier, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Phillip Lord, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Stefan Monnier, 2020/05/12
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs],
Jonas Bernoulli <=
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Adrián Medraño Calvo, 2020/05/14
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Göktuğ Kayaalp, 2020/05/14
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Richard Stallman, 2020/05/14
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Phillip Lord, 2020/05/15
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Richard Stallman, 2020/05/17
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Stefan Monnier, 2020/05/18
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Adrián Medraño Calvo, 2020/05/18
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Stefan Monnier, 2020/05/18
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Lars Ingebrigtsen, 2020/05/19
- Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs], Bastien, 2020/05/22