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: Thu, 05 Nov 2015 22:58:54 +0100
User-agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu)

Michael Heerdegen <address@hidden> writes:

> We can do the very same for streams; just use `stream-cons' instead of
> `cons':
>
> --8<---------------cut here---------------start------------->8---
> (defmacro stream-push (newelt place)
>   "Add NEWELT to the stream stored in PLACE.
> This is equivalent to (setf PLACE (stream-cons NEWELT PLACE))."
>   `(cl-callf2 stream-cons ,newelt ,place))
> --8<---------------cut here---------------end--------------->8---
>
> Would that be ok?

I guess so, as long as we don't add too many such functions.

Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

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