mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
8 lines
192 B
Swift
8 lines
192 B
Swift
// Reimplement the Swift standard library's optional type
|
|
enum OptionalValue<T> {
|
|
case None
|
|
case Some(T)
|
|
}
|
|
var possibleInteger: OptionalValue<Int> = .None
|
|
possibleInteger = .Some(100)
|