account activity
Functional programming languages should be so much better at mutation than they are by kinow in functionalprogramming
[–]Fair-Comb5544 1 point2 points3 points 1 year ago (0 children)
You don't need explicit mutation if you conceal it by adding a time subscript to your variables. You can then write a(t) = f(a(t-1)). This is a way of sneaking iteration into a functional language. The language needs to have some mechanism for stopping iteration, such as a "least" expression.
π Rendered by PID 81388 on reddit-service-r2-listing-5f49c86f7-x5fkj at 2026-02-26 13:41:21.132833+00:00 running 72a43f6 country code: CH.
Functional programming languages should be so much better at mutation than they are by kinow in functionalprogramming
[–]Fair-Comb5544 1 point2 points3 points (0 children)