You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					10 lines
				
				389 B
			
		
		
			
		
	
	
					10 lines
				
				389 B
			| 
								 
											3 years ago
										 
									 | 
							
								import type {IntoInterator} from './types';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Requires a resolution of https://github.com/microsoft/TypeScript/issues/1213
							 | 
						||
| 
								 | 
							
								// export default function takeInto<C<~>, T>(ArrayClass: new <T>(n: number) => C<T>, iterator: Iterator<T>, n: number): C<T>;
							 | 
						||
| 
								 | 
							
								export default function takeInto<T>(
							 | 
						||
| 
								 | 
							
								  ArrayClass: new <T>(arrayLength: number) => T[],
							 | 
						||
| 
								 | 
							
								  iterator: IntoInterator<T>,
							 | 
						||
| 
								 | 
							
								  n: number
							 | 
						||
| 
								 | 
							
								): T[];
							 |