roar

Function roar 

Source
pub fn roar(num: &str) -> Result<String, FromDecStrErr>
Expand description

Decompose integer into the combination of 114514 formulae.

§Failure

  • The integer doesn’t meet the condition, –21024 + 1 ≤ num ≤ 21024 – 1 .
  • There are invalid characters in num.
Examples found in repository?
examples/cli.rs (line 5)
3fn main() {
4    let num = args().nth(1).unwrap();
5    let formula = homo::roar(&num).unwrap();
6
7    println!("{formula}");
8}