generalize iterate method

generalize `Process.iterate`  so that is could be applied to `f: A => F[A]`