[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is a "sequence"?
From: |
Lars Brinkhoff |
Subject: |
What is a "sequence"? |
Date: |
Fri, 07 Apr 2017 15:07:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Stefan Monnier wrote:
>> I think there are only a few functions that wants a sequence but not a
>> record: elt, copy-sequence, concat, reverse, and sort. In the context
>> of structure operations, the most likely function would be copy-sequence.
>
> BTW, why not make copy-sequence and elt work on records? After all,
> they are "sequences" (of fixed length and of heterogeneous values, but
> still).
Sure. I did consider copy-sequence, but then you added copy-record. I
don't see a great need for elt, but it wouldn't hurt. Maybe it would be
good for backward compatibility.
In a similar vein, there are also some restrictions on what you can to
to byte-code objects. You can do aref and concat and even mapcar, but
not aset, and there's no function to make a copy. I guess a similar
argument could be made that they're "sequences".
- Re: Recent change in master breaks async package update using paradox, (continued)
- Re: Recent change in master breaks async package update using paradox, Lars Brinkhoff, 2017/04/06
- Re: Recent change in master breaks async package update using paradox, Lars Brinkhoff, 2017/04/07
- Re: Recent change in master breaks async package update using paradox, Eli Zaretskii, 2017/04/07
- Re: Recent change in master breaks async package update using paradox, Lars Brinkhoff, 2017/04/07
- Re: Recent change in master breaks async package update using paradox, Eli Zaretskii, 2017/04/07
- Debugging problems using async.el, Lars Brinkhoff, 2017/04/07
- Re: Debugging problems using async.el, Kaushal Modi, 2017/04/07
- Re: Debugging problems using async.el, Eli Zaretskii, 2017/04/07
- Re: Debugging problems using async.el, Lars Brinkhoff, 2017/04/07
- Re: Recent change in master breaks async package update using paradox, Stefan Monnier, 2017/04/07
- What is a "sequence"?,
Lars Brinkhoff <=
- Re: What is a "sequence"?, Stefan Monnier, 2017/04/07
- If records are not sequences, why does aref work on records?, Paul Eggert, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/07
- RE: If records are not sequences, why does aref work on records?, Drew Adams, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/07
- RE: If records are not sequences, why does aref work on records?, Drew Adams, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Noam Postavsky, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Stefan Monnier, 2017/04/07
- RE: If records are not sequences, why does aref work on records?, Drew Adams, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Clément Pit-Claudel, 2017/04/07