Hacker News new | ask | show | jobs
by michaldudek 4843 days ago
What if I need to add 2 and 1? Is there a lib for that? Or would this one need to be completely refactored?

Also, in what version could we expect ability to handle 2 digit (or more!) numbers?

2 comments

The library supports adding other numbers than 1 and 1. Your use case of adding 2 to 1 is supported. As are multi-digit numbers. As are negative numbers.

As you can see, the library is quite advanced.

If you're going to implement 2+1 functionality, make sure to add the appropriate unit tests.