@[email protected] to [email protected] • 1 year agowhen is it best to use a recursive function vs a for loopmessage-square47fedilinkarrow-up134arrow-down13
arrow-up131arrow-down1message-squarewhen is it best to use a recursive function vs a for loop@[email protected] to [email protected] • 1 year agomessage-square47fedilink
minus-square@[email protected]linkfedilink6•edit-21 year 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.
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.