Skip to content

Commit

Permalink
Updated for version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KyNorthstar authored May 4, 2018
1 parent 3120ff4 commit 6a5c1da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Swift Lazy Patterns
A few lazy patterns for Swift 4. Note that, if you are OK with the behavior of Swift's `lazy` keyword, you should use that. This is for [those who want very specific behaviors](https://stackoverflow.com/a/40847994/3939277):

* [`Lazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L28-L78): A non-resettable lazy pattern, to guarantee lazy behavior across Swift language versions
* [`ResettableLazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L82-L167): A resettable lazy pattern, whose value is generated and cached only when first needed, and can be destroyed when no longer needed.
* [`FunctionalLazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L171-L221): An idea about how to approach the lazy pattern by using functions instead of branches.
* [`Lazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L31-L84): A non-resettable lazy pattern, to guarantee lazy behavior across Swift language versions
* [`ResettableLazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L88-L171): A resettable lazy pattern, whose value is generated and cached only when first needed, and can be destroyed when no longer needed.
* [`FunctionalLazy`](https://github.com/BenLeggiero/Swift-Lazy-Patterns/blob/master/Lazy.swift#L175-L225): An idea about how to approach the lazy pattern by using functions instead of branches.

0 comments on commit 6a5c1da

Please sign in to comment.