minus-squarecvttsd2si@programming.devtoProgramming@programming.dev•when is it best to use a recursive function vs a for looplinkfedilinkarrow-up5·edit-211 months agoWhen doing functional programming, you can’t really do loops (because of referential transparency, you can’t update iterators or indices). However, recursion still works. linkfedilink
When doing functional programming, you can’t really do loops (because of referential transparency, you can’t update iterators or indices). However, recursion still works.