Ask HN: How to Implement `toString` in JavaScript with Functional Programming?

https://news.ycombinator.com/item?id=16148763
by shakiba • 9 years ago
1 1 9 years ago

I like Functional Programming, however in JavaScript I can't figure out how to use polymorphism with FP. For example how would you implement `toString` in JavaScript with Functional Programming?

Cross posted here: stackoverflow.com/questions/48257447/

Related Stories

Loading related stories...

Source preview

news.ycombinator.com