Question on extra allocation entailed by 'drop' Zhu Zihao (22 May 2026 18:40 UTC)
Re: Question on extra allocation entailed by 'drop' Peter McGoron (22 May 2026 19:41 UTC)

Question on extra allocation entailed by 'drop' Zhu Zihao 22 May 2026 18:39 UTC

In the "Rationale" section, SRFI wrote:

>  where drop and take are from SRFI 1. Implementations are encouraged
>  to implement these procedures without the extra allocations entailed
>  by drop.

IIUC, drop doesn't entail extra allocation. SRFI-1 pointed out that
"drop is exactly equivalent to performing i cdr operations on x", it
doesn't require 'drop' procedure to return a freshly allocated pairs, it
can just return the ith-cdr of original list.

I suspect this is a typo, it should be "without the extra allocations
entailed by take" because 'take' does required to return freshly
allocated pairs.

--
Retrieve my PGP public key:
执行下列命令以获取我的 PGP 公有密钥:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao / 閱卜錄