ssk blog

バンコクで働くエンジニアのメモ

2017-11-28から1日間の記事一覧

Swiftのlazyってなに?lazyの使い方。リファクタリングした箇所の紹介

lazyってなに? The Swift Programming Languageに以下のように説明されています。A lazy stored property is a property whose initial value is not calculated until the first time it is used. You indicate a lazy stored property by writing the laz…