mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +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)
 |