[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: streams are cool, you could stream virtually anything!
From: |
Michael Heerdegen |
Subject: |
Re: streams are cool, you could stream virtually anything! |
Date: |
Wed, 04 Nov 2015 18:57:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi Nicolas,
> Because streams are lazy and immutable, you can reuse such a stream
> forever or keep it for later, move around in a buffer or modify the
> buffer and re-evaluate the stream (you'll get new match data), or map
> the result, etc.
A different cool thing you can use streams for is to traverse a file
tree recursively (to do something with the files, e.g. search them).
With streams, such an operation can be paused and resumed later.
Will make a PR if you are interested (but it is easy to implement).
Regards,
Michael.
- Re: streams are cool, you could stream virtually anything!, (continued)
Re: streams are cool, you could stream virtually anything!,
Michael Heerdegen <=