>>106494716
>I can use this one. Thanks.
That one is terrible. The lambdas wont be byte compiled (and therefore also wont be native compiled). Just using backquote is the best way to do it. If it is really offensive to you you could do something like
(cl-macrolet ((make-alist (&rest pairs)
(cl-loop for (a b) on pairs by #'cddr
collect `(cons ,a ,b) into form
finally return (cons 'list form))))
(make-alist
(rx "example") (lambda (line) line)
(rx line-start "foo") (lambda (line) line)))