More ideomatic way of phrasing `reduce(\circ, repeated(f, x))(y)`?

of course the magic related section is better at searching than the search bar or the related posts that pop up when composing a thread.

from here (mentioned here)

julia> f(a) = foldl((x,_) -> exp(x), repeated(nothing, 1000); init=a)
f (generic function with 1 method)

julia> @benchmark f(10.)
BenchmarkTools.Trial: 10000 samples with 999 evaluations per sample.
 Range (min … max):  8.146 ns … 25.388 ns  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     8.871 ns              ┊ GC (median):    0.00%
 Time  (mean ± σ):   8.995 ns ±  1.472 ns  ┊ GC (mean ± σ):  0.00% ± 0.00%

  █▄   ▅█▂ ▃                                                 ▁
  ██▇▆▇█████▇▇▆▆▆▆▆▆▆▆▆▆▅▆▆▆▅▆▆▅▆▇▅▇▇▆▆▇▆▇▇▇▅▆▇▆▇▆▇▇▇▆▇▇▇▇▆▆ █
  8.15 ns      Histogram: log(frequency) by time     15.2 ns <

 Memory estimate: 0 bytes, allocs estimate: 0.