mirror of
				https://github.com/flynx/diff.js.git
				synced 2025-10-31 03:50:13 +00:00 
			
		
		
		
	notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									fc500be1c2
								
							
						
					
					
						commit
						961cc1e8f3
					
				
							
								
								
									
										8
									
								
								diff.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								diff.js
									
									
									
									
									
								
							| @ -456,16 +456,16 @@ object.makeConstructor('NUMBER', Object.assign(new LogicType(), { | |||||||
| })) | })) | ||||||
| 
 | 
 | ||||||
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 | // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 | ||||||
| // XXX IN(A) == L iff A in L
 | // IN(A) == L iff A in L
 | ||||||
|  | //
 | ||||||
|  | // NOTE: since this can do a search using cmp(..) thid will be slow on 
 | ||||||
|  | // 		large containers...
 | ||||||
| // XXX add support for other containers...
 | // XXX add support for other containers...
 | ||||||
| var IN =  | var IN =  | ||||||
| module.IN =  | module.IN =  | ||||||
| object.makeConstructor('IN', Object.assign(new LogicType(), { | object.makeConstructor('IN', Object.assign(new LogicType(), { | ||||||
| 	__cmp__: function(obj, cmp){ | 	__cmp__: function(obj, cmp){ | ||||||
| 		var p = this.value | 		var p = this.value | ||||||
| 		// XXX the problem here is that we need to both directly test and 
 |  | ||||||
| 		// 		deep test (seatch) for the .value in obj...
 |  | ||||||
| 		// 		...this may get really slow...
 |  | ||||||
| 		// XXX add support for other stuff like sets and maps...
 | 		// XXX add support for other stuff like sets and maps...
 | ||||||
| 		// XXX make this a break-on-match and not a go-through-the-whole-thing
 | 		// XXX make this a break-on-match and not a go-through-the-whole-thing
 | ||||||
| 		return p in obj | 		return p in obj | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user