I love working on stuff that boosts developers' (or my) productivity.
I pretend to write good code until I actually do 😉.
I am also the creator of https://keytty.com.
letresult:i64_t=Factor::factorial(4);assert_eq!(24,result);// will give you this kind of error below:/*
thread 'xxx' panicked at 'assertion failed: `(left == right)`
left: `24`,
right: `12`'
*/
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was wondering how this code work as tail rec function and I discovered that it is not recursive at all.
You could tell by asserting like this: