Documentation
Commentary
Exemplify-Eval creates Exemplify-ERT–like evaluations.
From this:
(* 6 7)
(cons :a 1)
(vector 'a 'b 'c)
(make-hash-table :test 'equal)
(h<-alist '((:a . 1) (:b . 2)))
(h<-alist '((:a . 1) (:b . 2) (:c . 3) (:d . 4) (:e . 5)))
To this:
(* 6 7) => 42
(cons :a 1) => '(:a . 1)
(vector 'a 'b 'c) => [a b c]
(make-hash-table :test 'equal) H=> (h*)
(h<-alist '((:a . 1) (:b . 2))) H=> (h* :a 1 :b 2)
(h<-alist '((:a . 1) (:b . 2) (:c . 3) (:d . 4) (:e . 5)))
H=> (h* :a 1
:b 2
:c 3
:d 4
:e 5)
The native hash table format can also be used instead of xht's:
(make-hash-table) => #s(hash-table)
These examples can double as ERT tests when used with Exemplify-ERT.
For all the details, please do see the README
Open it easily with:
(find-file-read-only "README.org") <--- C-x C-e here¹
or from any buffer:
M-x exemplify-eval-see-readme
or read it online:
<https://flandrew.srht.site/listful/sw-emacs-exemplify-eval.html>
¹ or the key that ‘eval-last-sexp’ is bound to, if not C-x C-e.
Consumers
Reverse Dependencies
No reverse dependencies recorded.