mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Oups
This commit is contained in:
		
							parent
							
								
									e621327042
								
							
						
					
					
						commit
						866635fe1f
					
				@ -205,7 +205,7 @@ namespace Kyoo
 | 
				
			|||||||
		public static IEnumerable<List<T>> BatchBy<T>(this List<T> list, int countPerList)
 | 
							public static IEnumerable<List<T>> BatchBy<T>(this List<T> list, int countPerList)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			for (int i = 0; i < list.Count; i += countPerList)
 | 
								for (int i = 0; i < list.Count; i += countPerList)
 | 
				
			||||||
				yield return list.GetRange(i, Math.Min(list.Count - i, i + countPerList));
 | 
									yield return list.GetRange(i, Math.Min(list.Count - i, countPerList));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user