Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var someProp: VarType?
- // result should be VarType not VarType?
- if (someProp != null) {
- return someProp
- }
- else {
- someProp = computeVariable()
- return someProp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement