isZero and isOne are very similar, they could be written as
Christian Bewernitz
21

No. Theres nothing wrong with ur approach. I should have emphasized that this is a contrived example. Sorry about that. My goal is to show that tiny specialized functions can be used and reused to compose into a bigger program that is linear to prevent or minimize `if..else` statements.

I used the fibonacci since all or most people are familiar with it.

Like what you read? Give Ken Aguilar a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.