[Olena-patches] 3897: Add fun p2p fold functions.