mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			178 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			178 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
| func makeIncrementer() -> (Int -> Int) {
 | |
|     func addOne(number: Int) -> Int {
 | |
|         return 1 + number
 | |
|     }
 | |
|     return addOne
 | |
| }
 | |
| var increment = makeIncrementer()
 | |
| increment(7)
 |