feat(wpcarro/emacs): Add fns to list.el

new functions:
- duplicate
- last
- delete
- wrap

also:
- drop support for `list-head` (in favor of `list-first`)
- add optional arg to first

Change-Id: If3c48d4749a3bc5a853995996fa02a65a4076a10
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6041
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2022-08-05 12:34:15 -07:00 committed by clbot
parent b880fc4a14
commit e5503751c4
4 changed files with 70 additions and 10 deletions

View file

@ -46,7 +46,7 @@
"Look at the top element of `XS' without popping it off."
(->> xs
stack-xs
list-head))
list-first))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Update