[swift-users] Setting up properties

Erica Sadun erica at ericasadun.com
Mon Dec 21 21:16:34 CST 2015


Thanks again! -- E,passed on

> On Dec 21, 2015, at 8:15 PM, David Turnbull via swift-users <swift-users at swift.org> wrote:
> 
> You could be lazy about it...
>     lazy private(set) var derp: Bool =  {
>         [unowned self] in
>         return self._findDerp() != nil
>     }()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151221/c7052d05/attachment.html>


More information about the swift-users mailing list