You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on github.com and signed with GitHub’s verified signature.
The key has expired.
New Features
Rebranded to Lazy Containers, since this repo focuses on providing containers that lazily hold values, but doesn't focus providing patterns for how to do this (although, it does provide the tools to do that).
You can now use Lazy, ResettableLazy, and FunctionalLazy as property wrappers!
FunctionalLazy is now passed by value, rather than by reference.
You can still lazily initialize the value held within a Lazy, ResettableLazy, nor a FunctionalLazy in a non-mutating way, but you can no longer manually set it. This remains consistent with the goal of this repo (to provide a way to lazily initialize a value). In order to set a value-passed instance in a non-mutating way, see Swift-Safe-Pointer.
You can now create an instance of any lazy container with a value already initialized inside it. This is useful when you need a uniform API (for instance, when implementing a protocol that requires a Lazy), but require it to already hold a value up-front.
Added repo format which allows this to be a Swift Package.