I need to generate a folded function like follows:
f[ a[[3]], b[[3]], c[[3]],
f[ a[[2]], b[[2]], c[[2]],
f[ a[[1], b[[1]], c[[1]],
fstart
]
]
]
But instead of 3 times folded, I need it k-times folded.
a
,b
,c
are lists containing numbers.
I tried to play around with Fold
and FoldList
and searched for similar questions, but I couldn't make it work :/.
Thanks for any help!