This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm working on the Odin Project's calculator, and it got me wondering: would it be possible to build the calculator using entirely functional programming?
I had a thought of using a memory
array to hold numbers, then calling reduce against the array with the different operations set up as reduce functions.
However, the bits I'm struggling with are:
How to parse out the actual operations.
How to handle decimals.
How to handle double and triple-digit numbers.
If anyone has any good jumping-off points for those three, I'd be very appreciative.
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnjavasc...