Skip to main content

catalan_from_geode_dimension

Function catalan_from_geode_dimension 

Source
pub fn catalan_from_geode_dimension(n: u64) -> Result<u128, GeodeError>
Expand description

Returns the one-dimensional Catalan value that matches [n].

ยงErrors

Returns GeodeError::ArithmeticOverflow when the corresponding Catalan number no longer fits in u128.