One function I had to build iterative is about building the network graph on Nostr. You start with an npub, let's say fiatjaf, then you fetch all the people he follows. Calling this set N1. Then you fetch all people followed by N1 and you get N2. If you want to have a parameter `depth` that you can set, you have to use a recursive function. it was painful to debug, which is another problem with recursion