chickadee » srfi-134 » ideque-unfold

ideque-unfold stop? mapper successor seedprocedure

Invokes the predicate stop? on seed. If it returns false, generate the next result by applying mapper to seed, generate the next seed by applying successor to seed, and repeat this algorithm with the new seed. If stop? returns true, return an ideque containing the results in order of accumulation.