Kalkwst / MicroLib

MIT License
3 stars 0 forks source link

:sparkles: Add Lazy Generating List Decorator #28

Open Kalkwst opened 1 year ago

Kalkwst commented 1 year ago

A lazy list decorator is a layer of functionality that can be applied to an existing list data structure, allowing it to generate its elements only when they are accessed by the user, rather than generating all the elements up front. This can be useful for situations where the list is very large or the elements are expensive to generate, as it allows the user to access only the elements they need while minimizing the amount of computation required.