Tutorial by Topics: optional

Optional is a container object which may or may not contain a non-null value. If a value is present, isPresent() will return true and get() will return the value. Additional methods that depend on the presence of the contained value are provided, such as orElse(), which returns a default value if v...
“ An optional value either contains a value or contains nil to indicate that a value is missing” Excerpt From: Apple Inc. “The Swift Programming Language (Swift 3.1 Edition).” iBooks. https://itun.es/us/k5SW7.l Basic optional use cases include: for a constant (let), use of an optional within a loo...
Named Arguments Ref: MSDN Named arguments enable you to specify an argument for a particular parameter by associating the argument with the parameter’s name rather than with the parameter’s position in the parameter list. As said by MSDN, A named argument , Enables you to pass the argument t...

Page 1 of 1