emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: streams are cool, you could stream virtually anything!


From: Nicolas Petton
Subject: Re: streams are cool, you could stream virtually anything!
Date: Fri, 06 Nov 2015 18:36:24 +0100
User-agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu)

John Wiegley <address@hidden> writes:


> So let's say I've written a function over lists, and I realize I want it to
> act on streams instead. I'd hope that I could just insert "stream-" in several
> places and fulfill that need. If I have to also change over to a different set
> of names for the same effective operations, that would be unfortunate.

That's exactly why I did seq.el! :-)

It doesn't have `seq-first' and `seq-rest' though, but I could very well
add them.  The only thing we will have to know is that `seq-rest' will
be more expensive on arrays than lists and streams.

Cheers,
Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]