| Post Reply | RetroFed Forum Forum Index » Functional Programming |
| Author | Message | ||
|---|---|---|---|
|
matcha_addict
lemy.lol
matcha_addict@lemy.lol Joined: 2023-07-09 |
I've been enjoying learning ocaml, but I found it very easy to write code riddled with side effects and imperative-ness. Take this example:
As you can see, many side effects and imperative steps in the code. Is there a better practice for coding this in a functional manner? |
||
| 1 Original | |||
| Post Reply |
Back to top |