less confusing part selection
This commit is contained in:
		
							parent
							
								
									65b4fbf539
								
							
						
					
					
						commit
						861e13713e
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -13,10 +13,7 @@ proc intersects(a, b: set[uint8]): bool =
 | 
				
			||||||
  a * b != {}
 | 
					  a * b != {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let compare =
 | 
					let compare =
 | 
				
			||||||
  case paramStr(1):
 | 
					  if paramCount() > 0 and paramStr(1) == "2":
 | 
				
			||||||
  of "1":
 | 
					 | 
				
			||||||
    eitherContains
 | 
					 | 
				
			||||||
  of "2":
 | 
					 | 
				
			||||||
    intersects
 | 
					    intersects
 | 
				
			||||||
  else:
 | 
					  else:
 | 
				
			||||||
    eitherContains
 | 
					    eitherContains
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue