Skip to content

huntipl/TCC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCC

Simple Library for splitting an array into given number of chunks. If the input array cannot be divided equally, the final chunk is going to store the remainder.

Getting started

Installation

Install the package using pip pip install git+https://github.com/huntipl/tcc

Running the tests

Run pytest or python -m pytest in the repository root folder

Basic Usage

import tcc

array = [1, 2, 3, 4, 5]
chunks = 3

result = tcc.split_array(array, chunks)
# result = [[1, 2], [3, 4], [5]]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages