2 ms·
> A lot of imperative algorithms don't really have functional analogues. But there are to be the ways functional programmers solve the same task? Thank you fo
by qwerty456127 8y ago
> A lot of imperative algorithms don't really have functional analogues.
But there are to be the ways functional programmers solve the same task?
Thank you for the link.
- disgruntledphd2 8y agoDefinitely. But unless special care is taken, these will use (normally) more space, and potentially more time. I think Chris Osaki did a bunch of work on functional data structures for handling immutability efficiently (still less efficiently) and that some of this was implemented in Clojure.
- ascar 8y agoFunctional programming is not supposed to be a golden hammer. That's the pragmatic solution for this problem ;).