[Pharo-users] Is lazy evaluation of infinite series possible?

Nicolai Hess nicolaihess at gmail.com
Sat May 28 15:38:26 EDT 2016

2016-05-28 20:57 GMT+02:00 Erisa <bawolk at ucdavis.edu>:

> I am just learning Pharo (taking the MOOC actually!) and am wondering
> whether
> it is possible to model formal power series.  I have done this in Haskell
> quite easily and efficiently, but struggled to do it in Python without real
> success.  It requires one to perform operations on an infinite stream (such
> as multiplying two infinite power series).  One then only evaluates the
> terms as they are needed, i.e., lazily.  Any thoughts?

Hi Erisa,

we have generatos in Pharo!

See class Generator.


> --
> View this message in context:
> http://forum.world.st/Is-lazy-evaluation-of-infinite-series-possible-tp4897956.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160528/2b0d9275/attachment.html>

More information about the Pharo-users mailing list