#How can I make this code recursive?

1 messages · Page 1 of 1 (latest)

drowsy iron
#

Hello there I want to try and make this algorithm which is parsing through a CSV data a recursive algorithm and then adding this data into a database table (even though using a recursive algorithm may be inefficient in this case). As my knowledge on recursion is quite limited any help will be appreciated. Thank you.

pearl elm
#

you have to change the for loop into something like factorial recursive iterator from 0 to n

#

or n to 0 with n--

#

or until the function returns no more rows

#

which you then return and unloop forever until you reach open()