This class implements lazy lists (or streams) for Ruby. Such lists avoid the computation of values which arent needed for some computation. So its possible to define infinite lists with a limited amount of memory. A value that hasnt been used yet is calculated on the fly and saved into the list. A value which is used for a second time is computed only once and just read out of memory for the second usage.
This class implements lazy lists (or streams) for Ruby. Such lists avoid the computation of values which arent needed for some computation. So its possible to define infinite lists with a limited amount of memory. A value that hasnt been used yet is calculated on the fly and saved into the list. A value which is used for a second time is computed only once and just read out of memory for the second usage.
To install rb-lazylist, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install rb-lazylist
To see what files were installed by rb-lazylist, run:
port contents rb-lazylist
To later upgrade rb-lazylist, run:
sudo port selfupdate && sudo port upgrade rb-lazylist
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.