mirror of
				https://github.com/Theodor-Springmann-Stiftung/musenalm.git
				synced 2025-10-31 18:25:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			144 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			144 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package functions
 | |
| 
 | |
| func Add(a, b any) int {
 | |
| 	val1, ok1 := a.(int)
 | |
| 	val2, ok2 := b.(int)
 | |
| 	if !ok1 || !ok2 {
 | |
| 		return 0
 | |
| 	}
 | |
| 
 | |
| 	return val1 + val2
 | |
| }
 | 
