In a food processor, combine the soaked walnuts, pitted dates, almond flour, shredded coconut, maple syrup, vanilla extract, cinnamon, nutmeg, and salt. Process until the mixture is well combined and has a sticky consistency.
Add the grated carrots, raisins, and chopped pineapple (if using) to the mixture. Pulse a few times until the carrots are evenly distributed.
Transfer the mixture to a lined 8-inch round cake pan. Press down firmly and evenly to form the cake.
Place the cake in the refrigerator for at least 2 hours to set.
Once set, remove the cake from the pan and slice as desired. Serve chilled or at room temperature. Enjoy!