[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Easy to add with push but not to the end of a list
From: |
Emanuel Berg |
Subject: |
Re: Easy to add with push but not to the end of a list |
Date: |
Mon, 09 Jan 2023 07:32:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> ;;; -*- lexical-binding: t -*-
> ;;
> ;; this file:
> ;; https://dataswamp.org/~incal/emacs-init/list.el
>
> (defmacro pushlast (newelt place)
> (declare (debug (form gv-place)))
> (macroexp-let2 macroexp-copyable-p x newelt
> (gv-letplace (getter setter) place
> (funcall setter `(append ,getter (cons ,x nil))) )))
How much slower than `push' for a list of 2^i items for
i \in W?
https://dataswamp.org/~incal/data/numbers.txt
But there are some numbers missing from that list ... ?
--
underground experts united
https://dataswamp.org/~incal