[Edit: see below for a simple solution without Iterators, although I suggest using it and all the useful features inside the package]
With the Iterators package, the following might be the solution:
julia> using Iterators
julia> reduce((x,y)->y,take(iterate(sqrt,11231.0),5))
1.791229164345863
iterate (Do ?iterate REPL ). Iterators ( ) nth, :
nth(iterate(sqrt,11231.0),5)
(x,y)->y , reduce, :
first(x,y) = x
second(x,y) = y
,
julia> reduce(second,take(iterate(sqrt,11231.0),5))
1.791229164345863
. , ( ) , , , , 5.
Iterators foldl -
julia> foldl((x,y)->sqrt(x),11231.0,1:4)
1.791229164345863
, , sqrt, , (, , 1:4, )