fn partition_cache(n: usize) -> PartitionCache {
    let mut values = vec![0; cmp::min(n, CACHE_LIMIT)];

    // Fill with default initial values as a base case
    values[0] = 0;
    values[1] = 1;
    values[2] = 2;
    values[3] = 3;
    values[4] = 5;
    values[5] = 7;

    values
}
/// Return a cache for use when calculating partitions.
Return a cache for use when calculating partitions.
Return a cache for use when calculating partitions .
fn partition_cache(n: usize) -> PartitionCache {
    let mut values = vec![0; cmp::min(n, CACHE_LIMIT)];
    // Fill with default initial values as a base case
    values[0] = 0;
    values[1] = 1;
    values[2] = 2;
    values[3] = 3;
    values[4] = 5;
    values[5] = 7;
    values
}
fn partition_cache ( n : usize ) -> PartitionCache { let mut values = vec ! [ 0 cmp min ( n CACHE_LIMIT ) ] ; // Fill with default initial values as a base case values [ 0 ] = 0 ; values [ 1 ] = 1 ; values [ 2 ] = 2 ; values [ 3 ] = 3 ; values [ 4 ] = 5 ; values [ 5 ] = 7 ; values }
Return a cache for use when calculating partitions.
Return a cache for use when calculating partitions .
n
usize