jackpottoProgramming@programming.dev·10 months agowhen is it best to use a recursive function vs a for loopmessage-squarearrow-up134arrow-down13message-square52fedilink
arrow-up131arrow-down1message-squarewhen is it best to use a recursive function vs a for loopjackpottoProgramming@programming.dev·10 months agomessage-square52fedilink
minus-squarecvttsd2siarrow-up6arrow-down0·10 months agoedit-210 months agolinkfedilinkWhen 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.