For anyone learning this at the same time as me, this video has been super helpful and covers foldr and foldl at 24:50: