mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			206 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			206 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
class Counter {
 | 
						|
    var count: Int = 0
 | 
						|
    func incrementBy(amount: Int, numberOfTimes times: Int) {
 | 
						|
        count += amount * times
 | 
						|
    }
 | 
						|
}
 | 
						|
var counter = Counter()
 | 
						|
counter.incrementBy(2, numberOfTimes: 7)
 |