dsalgo 0.3.10

A package for Datastructures and Algorithms.
Documentation
use std::ops::*;

use crate::{
    choose::Choose,
    combination_from_u64::Combination,
};

impl<T> Choose<T> for Combination<T>
where
    T: Mul<Output = T> + From<u64> + Clone,
{
    fn choose(
        &mut self,
        n: u64,
        k: u64,
    ) -> T {
        self.calc(n as usize, k as usize)
    }
}